Browse Source

Added git version to footer

tags/2.0.3
Teknikode 4 years ago
parent
commit
cbac6d1fd3
2 changed files with 15 additions and 3 deletions
  1. 1
    1
      Teknik/Content/teknik.css
  2. 14
    2
      Teknik/Views/Shared/_Footer.cshtml

+ 1
- 1
Teknik/Content/teknik.css View File

@@ -24,7 +24,7 @@ body { padding-top: 70px; }
#footer {
height: 60px;
text-align: center;
padding: 25px 0;
padding: 15px 0;
margin-top: 20px;
margin-bottom: 0;
border-radius: 0;

+ 14
- 2
Teknik/Views/Shared/_Footer.cshtml View File

@@ -1,5 +1,17 @@
<footer id="footer" class="footer navbar navbar-default">
@using System.Diagnostics;
@using System.Reflection;

<footer id="footer" class="footer navbar navbar-default">
<div class="container">
<p class="text-muted">&copy; Teknik 2013-2015 | @string.Format("v{0}", ViewContext.Controller.GetType().Assembly.GetName().Version) | @Html.ActionLink("Privacy", "Index", "Privacy", new { area = "Privacy"}, htmlAttributes: new { title = "Privacy" }) | @Html.ActionLink("Transparency", "Index", "Transparency", new { area = "Transparency" }, htmlAttributes: new { title = "Transparency" }) | @Html.ActionLink("Server", "Index", "Server", new { area = "Server" }, htmlAttributes: new { title = "Server" })</p>
@{
Assembly assembly = ViewContext.Controller.GetType().Assembly;
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);
string version = fileVersionInfo.ProductVersion;
}
<p class="text-muted">
&copy; Teknik 2013-2015 | @Html.ActionLink("Privacy", "Index", "Privacy", new { area = "Privacy"}, htmlAttributes: new { title = "Privacy" }) | @Html.ActionLink("Transparency", "Index", "Transparency", new { area = "Transparency" }, htmlAttributes: new { title = "Transparency" }) | @Html.ActionLink("Server", "Index", "Server", new { area = "Server" }, htmlAttributes: new { title = "Server" })
<br />
@string.Format("{0}", version)
</p>
</div>
</footer>

Loading…
Cancel
Save