Page title configurable at deploy

This commit is contained in:
2016-08-19 10:22:42 -04:00
parent 26169a30b4
commit a9cb9d36b5
8 changed files with 27 additions and 11 deletions
+10
View File
@@ -0,0 +1,10 @@
@using System.Configuration
@if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["AgencyName"]))
{
<text>Mileage Traker - @ConfigurationManager.AppSettings["AgencyName"] - @ViewBag.Title</text>
}
else
{
<text>Mileage Traker - @ViewBag.Title</text>
}
+8 -8
View File
@@ -1,14 +1,14 @@
<!DOCTYPE html>
<html>
<head>
<title>Mileage Traker - ETHRA - @ViewBag.Title</title>
<title>@Html.Partial("PageTitle")</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="@Url.Content("~/Content/themes/custom-theme/jquery-ui-1.10.4.custom.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/jquery.qtip.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/font-awesome.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/custom-theme/jquery-ui-1.10.4.custom.min.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/Content/bootstrap-responsive.min.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/Content/jquery.qtip.min.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/Content/font-awesome.min.css")" rel="stylesheet" type="text/css"/>
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css"/>
@RenderSection("Styles", false)
</head>
<body>
@@ -75,7 +75,7 @@
@RenderBody()
</div>
<footer>
Mileage Traker &copy; 2015 Kolpack Software Consulting LLC, ETHRA
Mileage Traker &copy; 2016 Kolpack Software Consulting LLC
</footer>
<script src="@Url.Content("~/Scripts/jquery-2.1.4.min.js")" type="text/javascript"></script>
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
<title>Mileage Traker - ETHRA - @ViewBag.Title</title>
<title>@Html.Partial("PageTitle")</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="@Url.Content("~/Content/themes/custom-theme/jquery-ui-1.10.4.custom.min.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/bootstrap.min.css")" rel="stylesheet" type="text/css" />
+1 -1
View File
@@ -23,7 +23,7 @@
Key
</th>
<th>
Ethra Id
Id
</th>
<th>
Year, Make, Model
+4 -1
View File
@@ -28,7 +28,10 @@
</customErrors>
-->
</system.web>
<system.net>
<appSettings>
<add xdt:Locator="Condition(@key='AgencyName')" xdt:Transform="SetAttributes" value="ETHRA" />
</appSettings>
<system.net>
<mailSettings>
<smtp>
<network xdt:Transform="SetAttributes" host="Exchange2010.ethra.org" />
+1
View File
@@ -13,6 +13,7 @@
<add key="ClientValidationEnabled" value="true" />
<add key="UnobtrusiveJavaScriptEnabled" value="true" />
<add key="enableSimpleMembership" value="false" />
<add key="AgencyName" value="" />
<add key="EmailFromAddress" value="Mileage Traker &lt;noreply@ethra.org&gt;" />
<add key="ResetPasswordSubject" value="New Mileage Traker Password Request" />
<add key="ResetPasswordBody" value="Hello {1}, please open this link to set a new password for your Mileage Traker account: {0}" />
+1
View File
@@ -393,6 +393,7 @@
<Content Include="Views\VehicleService\UpcomingServiceReminders.cshtml" />
<Content Include="Views\Vehicle\VehicleCostReport.cshtml" />
<Content Include="Views\Vehicle\VehicleCostIndex.cshtml" />
<Content Include="Views\Shared\PageTitle.cshtml" />
</ItemGroup>
<ItemGroup>
<Content Include="Content\Account.Login.css" />