Skip to content

Commit

Permalink
Include version number in Web UI (#25)
Browse files Browse the repository at this point in the history
* expose version number in Web UI

* Updated common.props
  • Loading branch information
Aaronontheweb authored Apr 14, 2019
1 parent 4fe202f commit 78eb261
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
@@ -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.
3 changes: 3 additions & 0 deletions src/WebCrawler.Web/Controllers/HomeController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/WebCrawler.Web/Views/Home/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<div class="jumbotron">
<h1>Web Crawler of Doom</h1>
<p class="lead">Akka.NET on Gorilla Steroids</p>
<p class="lead">Akka.NET on Gorilla Steroids - Version (@ViewBag.AppVersion)</p>
<p><a href="http://getakka.net" class="btn btn-primary btn-lg">Learn more &raquo;</a></p>
</div>

Expand Down
2 changes: 1 addition & 1 deletion src/common.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<Copyright>Copyright © 2015-2019 Petabridge, LLC</Copyright>
<Authors>Petabridge</Authors>
<VersionPrefix>0.2.4</VersionPrefix>
<PackageReleaseNotes>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.</PackageReleaseNotes>
<PackageReleaseNotes>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.</PackageReleaseNotes>
<PackageIconUrl>
</PackageIconUrl>
<PackageProjectUrl>
Expand Down

0 comments on commit 78eb261

Please sign in to comment.