Skip to content

Commit

Permalink
[Added] added view profiel url to the username
Browse files Browse the repository at this point in the history
  • Loading branch information
nobir committed Jul 20, 2022
1 parent c6cf54d commit febb853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
ERPSystemTimologio.EF.User _sessionUser = (ERPSystemTimologio.EF.User)(Session["user"]);

<div>
<span class="text-white fs-6">Logged in <a href="#" class="badge badge-danger">@(_sessionUser.Username)</a> as @(_sessionUser.Type == 0 ? "System Admin" : (_sessionUser.Type == 1 ? "CEO" : (_sessionUser.Type == 2 ? "Regional Manager" : (_sessionUser.Type == 3 ? "Branch Manager" : (_sessionUser.Type == 4 ? "Employee" : "")))))</span>
<span class="text-white fs-6">Logged in <a href="@Url.Action("ViewProfile", "Dashboard")" class="badge badge-danger">@(_sessionUser.Username)</a> as @(_sessionUser.Type == 0 ? "System Admin" : (_sessionUser.Type == 1 ? "CEO" : (_sessionUser.Type == 2 ? "Regional Manager" : (_sessionUser.Type == 3 ? "Branch Manager" : (_sessionUser.Type == 4 ? "Employee" : "")))))</span>
</div>
}
</div>
Expand Down

0 comments on commit febb853

Please sign in to comment.