Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Admin Navbar link #14454

Merged
merged 2 commits into from
Oct 8, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
</li>
</li>

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in 7ef8072