-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNavMenu.razor
More file actions
31 lines (29 loc) · 1.71 KB
/
NavMenu.razor
File metadata and controls
31 lines (29 loc) · 1.71 KB
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
26
27
28
29
30
31
@namespace Tilework.Ui.Components.Layout
@using System.Reflection
<MudStack Class="d-flex flex-grow-1" StretchItems="StretchItems.Start">
<MudNavMenu>
<MudNavGroup Title="Load balancing" Expanded="false">
<MudNavLink Href="/lb/loadbalancers" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.AltRoute">Load balancers</MudNavLink>
<MudNavLink Href="/lb/targetgroups" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Storage">Target groups</MudNavLink>
</MudNavGroup>
<MudNavGroup Title="Certificates" Expanded="false">
<MudNavLink Href="/cm/authorities" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.AccountBalance">Certificate authorities</MudNavLink>
<MudNavLink Href="/cm/certificates" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.VerifiedUser">Certificates</MudNavLink>
</MudNavGroup>
<MudNavGroup Title="Identity" Expanded="false">
@* <MudNavLink Href="/im/providers" Match="NavLinkMatch.Prefix">Identity providers</MudNavLink> *@
<MudNavLink Href="/im/users" Match="NavLinkMatch.Prefix" Icon="@Icons.Material.Filled.Person">Users</MudNavLink>
</MudNavGroup>
</MudNavMenu>
<MudStack StretchItems="StretchItems.End" Spacing="0">
<MudDivider />
<MudText Align="Align.Center" Typo="Typo.caption" Class="pa-2 mud-text-secondary text-center"><strong>@AppVersion</strong></MudText>
</MudStack>
</MudStack>
@code {
private static readonly string AppVersion =
"v" + Assembly.GetExecutingAssembly()
.GetCustomAttribute<AssemblyInformationalVersionAttribute>()
?.InformationalVersion?
.Split('+')[0] ?? "0.0.0";
}