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 3.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. @using System.Diagnostics;
  2. @using System.Reflection;
  3. @using Teknik.Utilities;
  4. @{
  5. string redbubblePath = "/Images/redbubble_icon.png";
  6. // If we are using a CDN, let's replace it
  7. if (Model.Config.UseCdn)
  8. {
  9. if (!string.IsNullOrEmpty(Model.Config.CdnHost))
  10. {
  11. redbubblePath = Model.Config.CdnHost.TrimEnd('/') + redbubblePath;
  12. }
  13. }
  14. }
  15. <footer id="footer" class="footer navbar navbar-default">
  16. <div class="container">
  17. <div class="row">
  18. <div class="col-sm-10 col-sm-offset-1">
  19. <div class="text-center">
  20. <p>
  21. <small>
  22. While we provide these services for free, sadly that doesn't make the cost magically go away. If you think we are doing a great job and would like to say thanks, we would greatly appreciate a small donation.
  23. </small>
  24. </p>
  25. <form class="form-inline">
  26. <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=MBG93VKQ343P4" role="button" class="btn btn-default btn-sm" title="Paypal Donation">Paypal</a>
  27. <a href="https://www.patreon.com/teknik" role="button" class="btn btn-default btn-sm" title="Gratipay">Patreon</a>
  28. <a href="http://www.redbubble.com/people/teknikio" role="button" class="btn btn-default btn-sm" title="Teknik Redbubble Marketplace">Redbubble</a>
  29. <div class="form-group">
  30. <div class="input-group">
  31. <span class="input-group-addon" id="basic-addon1"><i class="fa fa-bitcoin"></i></span>
  32. <input type="text" class="form-control input-sm" name="bitcoin_address_footer" id="bitcoin_address_footer" value="@Model.Config.BitcoinAddress" onClick="this.setSelectionRange(0, this.value.length)" readonly>
  33. </div>
  34. </div>
  35. </form>
  36. </div>
  37. </div>
  38. </div>
  39. <br />
  40. @{
  41. Assembly assembly = ViewContext.Controller.GetType().Assembly;
  42. FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);
  43. string fullVersion = fileVersionInfo.ProductVersion;
  44. string verNum = fullVersion.Split('+')[0];
  45. string commitStr = fullVersion.Split('+')[1];
  46. string commitVer = commitStr.Split('.')[0];
  47. string commitHash = commitStr.Split('.').Last();
  48. }
  49. <div class="row">
  50. <div class="col-sm-5 col-sm-offset-1 text-left text-muted">
  51. &copy; Teknik 2013-2017 | <a href="@Url.SubRouteUrl("faq", "FAQ.Index")">FAQ</a> | <a href="@Url.SubRouteUrl("privacy", "Privacy.Index")">Privacy</a> | <a href="@Url.SubRouteUrl("tos", "TOS.Index")">TOS</a> | <a href="@Url.SubRouteUrl("status", "Status.Index")">Status</a>
  52. </div>
  53. <div class="col-sm-5 text-right text-muted">
  54. <div id="pagetime" style="display:none;">
  55. Gen: <b><span id="generatetime">0.0</span>ms</b> Load: <b><span id="loadtime">0.0</span>ms</b>
  56. </div>
  57. </div>
  58. </div>
  59. <div class="row">
  60. <div class="col-sm-10 col-sm-offset-1 text-center text-muted">
  61. Version: @string.Format("{0}.{1}", verNum, commitVer) - Hash: <a href="http://git.teknik.io/Teknikode/Teknik/src/@commitHash">@commitHash.Truncate(10)</a>
  62. </div>
  63. </div>
  64. </div>
  65. </footer>