feat: added version to Logo
Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
parent
2a73df7f58
commit
b0e5a14eaf
2 changed files with 7 additions and 2 deletions
|
@ -1,4 +1,5 @@
|
||||||
@using ImageBoardServerApp.Data.Repository
|
@using ImageBoardServerApp.Util
|
||||||
|
@using ImageBoardServerApp.Data.Repository
|
||||||
@inject AuthenticationStateProvider authStateProvider
|
@inject AuthenticationStateProvider authStateProvider
|
||||||
@inject NavigationManager navManager
|
@inject NavigationManager navManager
|
||||||
|
|
||||||
|
@ -8,7 +9,7 @@
|
||||||
</button>
|
</button>
|
||||||
<div class="container-fluid" id="maintitle" href="/">
|
<div class="container-fluid" id="maintitle" href="/">
|
||||||
<img src="img/static/logo_trans.png" width="32" height="32" alt="Logo"/>
|
<img src="img/static/logo_trans.png" width="32" height="32" alt="Logo"/>
|
||||||
<a class="navbar-brand" id="logo" href="/">BulletBoard</a>
|
<a class="navbar-brand" id="logo" href="/">BulletBoard @ver</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -67,6 +68,8 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@code {
|
@code {
|
||||||
|
public string ver { get; set; } = TheManager.version;
|
||||||
|
|
||||||
private bool collapseNavMenu = true;
|
private bool collapseNavMenu = true;
|
||||||
|
|
||||||
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;
|
||||||
|
|
|
@ -6,6 +6,8 @@ namespace ImageBoardServerApp.Util;
|
||||||
|
|
||||||
public class TheManager
|
public class TheManager
|
||||||
{
|
{
|
||||||
|
public static string version = "1.0.0-r1";
|
||||||
|
|
||||||
private static long getDiff(PostData post)
|
private static long getDiff(PostData post)
|
||||||
{
|
{
|
||||||
return (DateTimeOffset.Now.ToUnixTimeMilliseconds() - post.CreatedAt);
|
return (DateTimeOffset.Now.ToUnixTimeMilliseconds() - post.CreatedAt);
|
||||||
|
|
Loading…
Reference in a new issue