Skip to content

Commit

Permalink
add version
Browse files Browse the repository at this point in the history
  • Loading branch information
balbarak committed Feb 25, 2021
1 parent 933da34 commit 3a981e2
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 2 deletions.
12 changes: 12 additions & 0 deletions src/ScanX.Protocol/Helpers/VersionHelper.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace ScanX.Protocol.Helpers
{
public class VersionHelper
{
public static string Version => "1.7.0";
}
}
3 changes: 3 additions & 0 deletions src/ScanX.Protocol/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
<div class="container">
<h1 class="display-3">
ScanX Protocol
<small>
v<span>@VersionHelper.Version</span>
</small>
</h1>
<p>
Scanx will allow you to controll your printers and scanners via modern browsers using a websocket
Expand Down
2 changes: 1 addition & 1 deletion src/ScanX.Protocol/Views/Shared/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
<footer class="footer">
<div class="container">
<span class="text-muted">
ScanX All rights reserved 2018 - @DateTime.Now.Year <a href="https://github.com/balbarak/scanx">https://github.com/balbarak/scanx</a>
ScanX <span>v</span>@VersionHelper.Version All rights reserved 2018 - @DateTime.Now.Year <a href="https://github.com/balbarak/scanx">https://github.com/balbarak/scanx</a>
</span>
</div>
</footer>
Expand Down
2 changes: 1 addition & 1 deletion src/ScanX.Protocol/Views/_ViewImports.cshtml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using Microsoft.AspNetCore.Identity
@using Microsoft.AspNetCore.Http.Extensions
@using ScanX.Protocol.ViewModels

@using ScanX.Protocol.Helpers
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

0 comments on commit 3a981e2

Please sign in to comment.