Skip to content

Commit

Permalink
Admin menu links on small screens
Browse files Browse the repository at this point in the history
Related to #8034
  • Loading branch information
agriffard committed Dec 17, 2020
1 parent 4337873 commit 3145a62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="dropdown">
<form asp-route-area="OrchardCore.Users" asp-controller="Account" asp-action="LogOff" method="post" class="form-inline">
<a class="nav-link dropdown-toggle" id="navbarDropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" role="button">
<span><i class="fa fa-user" aria-hidden="true"></i>
<i class="fa fa-fw fa-user" aria-hidden="true"></i> <span class="d-inline d-md-none">@User.Identity.Name</span>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
<h6 class="dropdown-header">@T["Signed in as"]<span class="ml-1 font-weight-bold">@User.Identity.Name</span></h6>
Expand Down
8 changes: 5 additions & 3 deletions src/OrchardCore.Themes/TheAdmin/Views/Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -51,17 +51,19 @@
<a id="btn-darkmode" class="nav-link" data-toggle="tooltip" title="@(darkMode ? T["Light mode"] : T["Dark mode"])" role="button">
@if (darkMode)
{
<i class="fas fa-sun"></i>
<i class="fas fa-fw fa-sun"></i>
}
else
{
<i class="fas fa-moon"></i>
<i class="fas fa-fw fa-moon"></i>
}
<span class="d-inline d-md-none">@T["Dark mode"]</span>
</a>
}
</li>
<li class="nav-item">
<a href="@Url.Content("~/")" class="nav-link" target="_blank" data-toggle="tooltip" title="@T["Visit Site"]"><i class="fa fa-external-link"></i></a>
<a href="@Url.Content("~/")" class="nav-link" target="_blank" data-toggle="tooltip" title="@T["Visit Site"]"> <i class="fa fa-fw fa-external-link"></i>
<span class="d-inline d-md-none">@T["Visit Site"]</span></a>
</li>
<li class="nav-item">@await DisplayAsync(await New.UserMenu())</li>
</ul>
Expand Down

0 comments on commit 3145a62

Please sign in to comment.