diff --git a/.gitignore b/.gitignore index 5919e7b..95a2332 100644 --- a/.gitignore +++ b/.gitignore @@ -170,3 +170,4 @@ pip-log.txt Notes/papercut/*.eml */App_Data/Uploads +/logs* diff --git a/Web/Views/Shared/PageTitle.cshtml b/Web/Views/Shared/PageTitle.cshtml new file mode 100644 index 0000000..a06efcb --- /dev/null +++ b/Web/Views/Shared/PageTitle.cshtml @@ -0,0 +1,10 @@ +@using System.Configuration + +@if (!string.IsNullOrEmpty(ConfigurationManager.AppSettings["AgencyName"])) +{ + Mileage Traker - @ConfigurationManager.AppSettings["AgencyName"] - @ViewBag.Title +} +else +{ + Mileage Traker - @ViewBag.Title +} \ No newline at end of file diff --git a/Web/Views/Shared/_Layout.cshtml b/Web/Views/Shared/_Layout.cshtml index ac7c608..82d0196 100644 --- a/Web/Views/Shared/_Layout.cshtml +++ b/Web/Views/Shared/_Layout.cshtml @@ -1,14 +1,14 @@ - Mileage Traker - ETHRA - @ViewBag.Title + @Html.Partial("PageTitle") - - - - - - + + + + + + @RenderSection("Styles", false) @@ -75,7 +75,7 @@ @RenderBody() diff --git a/Web/Views/Shared/_Layout.login.cshtml b/Web/Views/Shared/_Layout.login.cshtml index 70eacef..80102b8 100644 --- a/Web/Views/Shared/_Layout.login.cshtml +++ b/Web/Views/Shared/_Layout.login.cshtml @@ -1,7 +1,7 @@  - Mileage Traker - ETHRA - @ViewBag.Title + @Html.Partial("PageTitle") diff --git a/Web/Views/Vehicle/Index.cshtml b/Web/Views/Vehicle/Index.cshtml index ad8bec8..cedced9 100644 --- a/Web/Views/Vehicle/Index.cshtml +++ b/Web/Views/Vehicle/Index.cshtml @@ -23,7 +23,7 @@ Key - Ethra Id + Id Year, Make, Model diff --git a/Web/Web.Release.config b/Web/Web.Release.config index 1e02bce..b3683ff 100644 --- a/Web/Web.Release.config +++ b/Web/Web.Release.config @@ -28,7 +28,10 @@ --> - + + + + diff --git a/Web/Web.config b/Web/Web.config index de38ac4..97deeac 100644 --- a/Web/Web.config +++ b/Web/Web.config @@ -13,6 +13,7 @@ + diff --git a/Web/Web.csproj b/Web/Web.csproj index 52b39b9..7b4c440 100644 --- a/Web/Web.csproj +++ b/Web/Web.csproj @@ -393,6 +393,7 @@ +