feat: added version to Logo

Signed-off-by: limited_dev <loginakkisativ@gmail.com>
This commit is contained in:
limited_dev 2023-06-13 20:04:17 +02:00
parent 2a73df7f58
commit b0e5a14eaf
2 changed files with 7 additions and 2 deletions

View file

@ -1,4 +1,5 @@
@using ImageBoardServerApp.Data.Repository
@using ImageBoardServerApp.Util
@using ImageBoardServerApp.Data.Repository
@inject AuthenticationStateProvider authStateProvider
@inject NavigationManager navManager
@ -8,7 +9,7 @@
</button>
<div class="container-fluid" id="maintitle" href="/">
<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>
@ -67,6 +68,8 @@
</div>
@code {
public string ver { get; set; } = TheManager.version;
private bool collapseNavMenu = true;
private string? NavMenuCssClass => collapseNavMenu ? "collapse" : null;

View file

@ -6,6 +6,8 @@ namespace ImageBoardServerApp.Util;
public class TheManager
{
public static string version = "1.0.0-r1";
private static long getDiff(PostData post)
{
return (DateTimeOffset.Now.ToUnixTimeMilliseconds() - post.CreatedAt);