Skip to content

Commit 3a981e2

Browse files
committed
add version
1 parent 933da34 commit 3a981e2

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
using System;
2+
using System.Collections.Generic;
3+
using System.Linq;
4+
using System.Threading.Tasks;
5+
6+
namespace ScanX.Protocol.Helpers
7+
{
8+
public class VersionHelper
9+
{
10+
public static string Version => "1.7.0";
11+
}
12+
}

src/ScanX.Protocol/Views/Home/Index.cshtml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
<div class="container">
1010
<h1 class="display-3">
1111
ScanX Protocol
12+
<small>
13+
v<span>@VersionHelper.Version</span>
14+
</small>
1215
</h1>
1316
<p>
1417
Scanx will allow you to controll your printers and scanners via modern browsers using a websocket

src/ScanX.Protocol/Views/Shared/_Layout.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
<footer class="footer">
5656
<div class="container">
5757
<span class="text-muted">
58-
ScanX All rights reserved 2018 - @DateTime.Now.Year <a href="https://github.com/balbarak/scanx">https://github.com/balbarak/scanx</a>
58+
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>
5959
</span>
6060
</div>
6161
</footer>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@using Microsoft.AspNetCore.Identity
22
@using Microsoft.AspNetCore.Http.Extensions
33
@using ScanX.Protocol.ViewModels
4-
4+
@using ScanX.Protocol.Helpers
55
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers

0 commit comments

Comments
 (0)