Page banner is now used for browser title.

This commit is contained in:
kay.one 2011-12-09 21:05:17 -08:00
commit 4f09778f98
17 changed files with 28 additions and 50 deletions

View file

@ -4,6 +4,15 @@
@using NzbDrone.Web.Helpers
@section HeaderContent
{
@if (string.IsNullOrWhiteSpace(ViewBag.Title) || String.Equals(ViewBag.Title, "NzbDrone", StringComparison.InvariantCultureIgnoreCase))
{
ViewBag.Title = "NzbDrone";
}
else
{
ViewBag.Title = String.Format("{0} - NzbDrone", ViewBag.Title);
}
<title>@ViewBag.Title</title>
@if (!EnviromentProvider.IsProduction)
{
@MvcMiniProfiler.MiniProfiler.RenderIncludes()
@ -23,7 +32,7 @@
<input id="localSeriesLookup" type="text" />
</div>
<div id="logo">
@RenderSection("TitleContent", required: false)
@ViewBag.Title
</div>
<div id="page">
@RenderSection("ActionMenu", required: false)

View file

@ -4,7 +4,6 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<link rel="SHORTCUT ICON" href="../../favicon.ico" />
<title>NzbDrone</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
@Html.IncludeCss("2011.3.1115/telerik.common.min.css")
@Html.IncludeCss("2011.3.1115/telerik.sitefinity.min.css")