From 78eb26140c76751be5a1d52a11b98491185e471c Mon Sep 17 00:00:00 2001 From: Aaron Stannard Date: Sun, 14 Apr 2019 11:17:12 -0500 Subject: [PATCH] Include version number in Web UI (#25) * expose version number in Web UI * Updated common.props --- RELEASE_NOTES.md | 2 +- src/WebCrawler.Web/Controllers/HomeController.cs | 3 +++ src/WebCrawler.Web/Views/Home/Index.cshtml | 2 +- src/common.props | 2 +- 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index f7d181c..f2d2b46 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,2 +1,2 @@ -#### 0.2.4 March 06 2019 #### +#### 0.2.4 April 14 2019 #### * Upgraded to [Petabridge.Cmd v0.5.0](https://cmd.petabridge.com/articles/RELEASE_NOTES.html#v050-march-05-2019) so we could take advantage of the `cluster tail` command. \ No newline at end of file diff --git a/src/WebCrawler.Web/Controllers/HomeController.cs b/src/WebCrawler.Web/Controllers/HomeController.cs index 55209a8..7590663 100644 --- a/src/WebCrawler.Web/Controllers/HomeController.cs +++ b/src/WebCrawler.Web/Controllers/HomeController.cs @@ -8,8 +8,11 @@ namespace WebCrawler.Web.Controllers { public class HomeController : Controller { + public static readonly string Version = typeof(HomeController).Assembly.GetName().Version.ToString(); + public IActionResult Index() { + ViewBag.AppVersion = Version; return View(); } } diff --git a/src/WebCrawler.Web/Views/Home/Index.cshtml b/src/WebCrawler.Web/Views/Home/Index.cshtml index 30c1779..bdde615 100644 --- a/src/WebCrawler.Web/Views/Home/Index.cshtml +++ b/src/WebCrawler.Web/Views/Home/Index.cshtml @@ -5,7 +5,7 @@

Web Crawler of Doom

-

Akka.NET on Gorilla Steroids

+

Akka.NET on Gorilla Steroids - Version (@ViewBag.AppVersion)

Learn more »

diff --git a/src/common.props b/src/common.props index 012a28f..b3aacb8 100644 --- a/src/common.props +++ b/src/common.props @@ -3,7 +3,7 @@ Copyright © 2015-2019 Petabridge, LLC Petabridge 0.2.4 - Upgraded to [Petabridge.Cmd v0.5.0](https://cmd.petabridge.com/articles/RELEASE_NOTES.html#v050-march-05-2019) so we could take advantage of the `cluster show` command. + Upgraded to [Petabridge.Cmd v0.5.0](https://cmd.petabridge.com/articles/RELEASE_NOTES.html#v050-march-05-2019) so we could take advantage of the `cluster tail` command.