Skip to content

Commit

Permalink
Admin Navbar link (#14454)
Browse files Browse the repository at this point in the history
  • Loading branch information
agriffard authored Oct 8, 2023
1 parent 29cba28 commit 6bc8145
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/OrchardCore.Themes/TheAdmin/Views/Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<!-- This script can't wait till the footer -->
<script asp-name="admin-head" version="1" at="Head"></script>

<!-- TheAdmin && Bootstrap CSS -->
<!-- TheAdmin & Bootstrap CSS -->
<style media="all" asp-name="admin" version="1"></style>
<script asp-name="font-awesome" at="Head" version="6"></script>
<script asp-name="admin" version="1" at="Foot"></script>
Expand Down Expand Up @@ -89,11 +89,7 @@
</div>
</li>
}
<li class="nav-item">
<a href="@Url.Content("~/")" class="nav-link" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@T["Visit Site"]" role="button">
<i class="fa-solid fa-fw fa-external-link" aria-hidden="true"></i>
</a>
</li>
@await DisplayAsync(await New.NavbarLink())
<li class="nav-item">
@await DisplayAsync(await DisplayManager.BuildDisplayAsync(new UserMenu(), UpdateModelAccessor.ModelUpdater, "DetailAdmin"))
</li>
Expand Down
5 changes: 5 additions & 0 deletions src/OrchardCore.Themes/TheAdmin/Views/NavbarLink.cshtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<li class="nav-item">
<a href="@Url.Content("~/")" class="nav-link" data-bs-toggle="tooltip" data-bs-placement="bottom" title="@T["Visit Site"]" role="button">
<i class="fa-solid fa-fw fa-external-link" aria-hidden="true"></i>
</a>
</li>

0 comments on commit 6bc8145

Please sign in to comment.