diff --git a/src/ScanX.Protocol/Helpers/VersionHelper.cs b/src/ScanX.Protocol/Helpers/VersionHelper.cs new file mode 100644 index 0000000..d6275a5 --- /dev/null +++ b/src/ScanX.Protocol/Helpers/VersionHelper.cs @@ -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"; + } +} diff --git a/src/ScanX.Protocol/Views/Home/Index.cshtml b/src/ScanX.Protocol/Views/Home/Index.cshtml index 7cebd8b..09239a8 100644 --- a/src/ScanX.Protocol/Views/Home/Index.cshtml +++ b/src/ScanX.Protocol/Views/Home/Index.cshtml @@ -9,6 +9,9 @@

ScanX Protocol + + v@VersionHelper.Version +

Scanx will allow you to controll your printers and scanners via modern browsers using a websocket diff --git a/src/ScanX.Protocol/Views/Shared/_Layout.cshtml b/src/ScanX.Protocol/Views/Shared/_Layout.cshtml index 5935c9d..a806f6c 100644 --- a/src/ScanX.Protocol/Views/Shared/_Layout.cshtml +++ b/src/ScanX.Protocol/Views/Shared/_Layout.cshtml @@ -55,7 +55,7 @@

diff --git a/src/ScanX.Protocol/Views/_ViewImports.cshtml b/src/ScanX.Protocol/Views/_ViewImports.cshtml index c3987b1..6794abd 100644 --- a/src/ScanX.Protocol/Views/_ViewImports.cshtml +++ b/src/ScanX.Protocol/Views/_ViewImports.cshtml @@ -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