1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Remade navbar logo use full filename for cache

This commit is contained in:
Uncled1023 2016-10-07 23:20:48 -07:00
parent 2d30e33949
commit 0beff458b9

View File

@ -2,6 +2,21 @@
@Html.Partial("../../Areas/User/Views/User/_LoginModalPartial", Model) @Html.Partial("../../Areas/User/Views/User/_LoginModalPartial", Model)
@using Teknik.Helpers
@{
string logoPath = Url.SubRouteUrl("www", "Default.Logo");
// If we are using a CDN, let's replace it
if (Model.Config.UseCdn)
{
if (!string.IsNullOrEmpty(Model.Config.CdnHost))
{
logoPath = Model.Config.CdnHost.TrimEnd('/') + Constants.LOGO_PATH.TrimStart('~');
}
}
}
<div class="navbar navbar-default navbar-fixed-top"> <div class="navbar navbar-default navbar-fixed-top">
<div class="container"> <div class="container">
<div class="navbar-header"> <div class="navbar-header">
@ -10,7 +25,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="@Url.SubRouteUrl("www", "Home.Index")"><img src="@Url.SubRouteUrl("www", "Default.Logo", true)" height="20" alt="Teknik"></a> <a class="navbar-brand" href="@Url.SubRouteUrl("www", "Home.Index")"><img src="@logoPath" height="20" alt="Teknik"></a>
</div> </div>
<div class="navbar-collapse collapse"> <div class="navbar-collapse collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">