The next generation of the Teknik Services. Written in ASP.NET. https://www.teknik.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

_Footer.cshtml 1.4KB

12345678910111213141516171819202122232425262728293031
  1. @using System.Diagnostics;
  2. @using System.Reflection;
  3. <footer id="footer" class="footer navbar navbar-default">
  4. <div class="container">
  5. @{
  6. Assembly assembly = ViewContext.Controller.GetType().Assembly;
  7. FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);
  8. string fullVersion = fileVersionInfo.ProductVersion;
  9. string verNum = fullVersion.Split('+')[0];
  10. string commitStr = fullVersion.Split('+')[1];
  11. string commitVer = commitStr.Split('.')[0];
  12. string commitHash = commitStr.Split('.').Last();
  13. }
  14. <div class="row">
  15. <div class="col-md-6 text-left text-muted">
  16. &copy; Teknik 2013-2016 | <a href="@Url.SubRouteUrl("privacy", "Privacy.Index")">Privacy</a> | <a href="@Url.SubRouteUrl("transparency", "Transparency.Index")">Transparency</a>
  17. </div>
  18. <div class="col-md-6 text-right text-muted">
  19. <div id="pagetime" style="display:none;">
  20. Gen: <b><span id="generatetime">0.0</span>ms</b> Load: <b><span id="loadtime">0.0</span>ms</b>
  21. </div>
  22. </div>
  23. </div>
  24. <div class="row">
  25. <div class="col-md-12 text-center text-muted">
  26. Version: @string.Format("{0}.{1} - Hash: {2}", verNum, commitVer, commitHash)
  27. </div>
  28. </div>
  29. </div>
  30. </footer>