The next generation of the Teknik Services. Written in ASP.NET.
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.
 
 
 
 

68 lines
3.6 KiB

@using System.Diagnostics;
@using System.Reflection;
@using Teknik.Helpers;
@{
string redbubblePath = "/Images/redbubble_icon.png";
// If we are using a CDN, let's replace it
if (Model.Config.UseCdn)
{
if (!string.IsNullOrEmpty(Model.Config.CdnHost))
{
redbubblePath = Model.Config.CdnHost.TrimEnd('/') + redbubblePath;
}
}
}
<footer id="footer" class="footer navbar navbar-default">
<div class="container">
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<div class="text-center">
<p>
<small>
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.
</small>
</p>
<form class="form-inline">
<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"><i class="fa fa-paypal"></i></a>
<a href="https://gratipay.com/Teknik/" role="button" class="btn btn-default btn-sm" title="Gratipay"><i class="fa fa-gratipay"></i></a>
<a href="http://www.redbubble.com/people/teknikio" role="button" class="btn btn-default btn-sm" title="Teknik Redbubble Marketplace"><img src="@redbubblePath" alt="Teknik Redbubble" /></a>
<div class="form-group">
<div class="input-group">
<span class="input-group-addon" id="basic-addon1"><i class="fa fa-bitcoin"></i></span>
<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>
</div>
</div>
</form>
</div>
</div>
</div>
<br />
@{
Assembly assembly = ViewContext.Controller.GetType().Assembly;
FileVersionInfo fileVersionInfo = FileVersionInfo.GetVersionInfo(assembly.Location);
string fullVersion = fileVersionInfo.ProductVersion;
string verNum = fullVersion.Split('+')[0];
string commitStr = fullVersion.Split('+')[1];
string commitVer = commitStr.Split('.')[0];
string commitHash = commitStr.Split('.').Last();
}
<div class="row">
<div class="col-sm-5 col-sm-offset-1 text-left text-muted">
&copy; Teknik 2013-2017 | <a href="@Url.SubRouteUrl("privacy", "Privacy.Index")">Privacy</a> | <a href="@Url.SubRouteUrl("tos", "TOS.Index")">TOS</a> | <a href="@Url.SubRouteUrl("transparency", "Transparency.Index")">Transparency</a>
</div>
<div class="col-sm-5 text-right text-muted">
<div id="pagetime" style="display:none;">
Gen: <b><span id="generatetime">0.0</span>ms</b> Load: <b><span id="loadtime">0.0</span>ms</b>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-10 col-sm-offset-1 text-center text-muted">
Version: @string.Format("{0}.{1}", verNum, commitVer) - Hash: <a href="http://git.teknik.io/Teknikode/Teknik/src/@commitHash">@commitHash.Truncate(10)</a>
</div>
</div>
</div>
</footer>