feat: update commit hash display to be a clickable link in the UI
All checks were successful
Caddy Manager CI build / docker (push) Successful in 1m2s
All checks were successful
Caddy Manager CI build / docker (push) Successful in 1m2s
This commit is contained in:
@@ -16,14 +16,16 @@
|
||||
<MudIconButton Icon="@Icons.Material.Filled.Menu" Color="Color.Inherit" Edge="Edge.Start" OnClick="@_drawer.ToggleDrawer" />
|
||||
<MudText Typo="Typo.h6">Caddy Manager</MudText>
|
||||
<MudSpacer />
|
||||
<MudText Class="mr-1" Typo="Typo.body2" Color="Color.Inherit">@ApplicationInfo.Version -</MudText>
|
||||
<MudText Class="mr-1" Color="Color.Inherit">@ApplicationInfo.Version -</MudText>
|
||||
@if(ApplicationInfo.CommitHash != "[DEVELOPMENT]")
|
||||
{
|
||||
<MudText Typo="Typo.body2" Color="Color.Inherit">(@ApplicationInfo.CommitHash)</MudText>
|
||||
<MudLink Href=@($"https://github.com/daothanhduy305/CaddyManager/commit/{ApplicationInfo.CommitHash}") Target="_blank">
|
||||
[@ApplicationInfo.CommitHash]
|
||||
</MudLink>
|
||||
}
|
||||
else
|
||||
{
|
||||
<MudText Typo="Typo.body2" Color="Color.Inherit">@ApplicationInfo.CommitHash</MudText>
|
||||
<MudText Color="Color.Inherit">@ApplicationInfo.CommitHash</MudText>
|
||||
}
|
||||
<MudIconButton Icon="@Icons.Custom.Brands.GitHub" Color="Color.Inherit" Href="https://github.com/daothanhduy305/CaddyManager" Target="_blank" />
|
||||
</MudAppBar>
|
||||
|
||||
Reference in New Issue
Block a user