zhaolei
2020-11-20 921de2254ff5712a44ed8575ee8efe34252f6603
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
@inherits SideBarBase
 
<aside class="@Model.ShowSideBar">
    <div class="bg"></div>
    <div class="nav-brand justify-content-center">
        <a href="@RootLayout?.HomeUrl">
            <img src="@Model.WebSiteLogo.ToBlazorLink()" />
            <span>@WebTitle</span>
        </a>
    </div>
    <div class="nav-header flex-fill align-items-center">
        <a href="@("~/Admin/Profiles".ToBlazorMenuUrl())">
            <img src="@Model.Icon.ToBlazorLink()" />
            <span class="username d-inline-block text-truncate flex-fill">@DisplayName</span>
        </a>
    </div>
    <div class="sidebar">
        <ul class="nav-sidebar nav nav-pills flex-column flex-nowrap">
            @foreach (var menu in Model.Navigations)
            {
                <NavItem Menu="@menu"></NavItem>
            }
        </ul>
    </div>
</aside>