Page banner is now used for browser title.

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

View File

@ -1,7 +1,5 @@
@using NzbDrone.Web.Helpers
@section TitleContent{
Add Series
}
@{ViewBag.Title = "Add Series";}
@section Scripts
{
@Html.IncludeScript("NzbDrone/addSeries.js")
@ -18,4 +16,4 @@ Add Series
<div id="existingSeries">
@{ Html.RenderAction("ExistingSeries", "AddSeries"); }
</div>
</div>
</div>

View File

@ -1,9 +1,7 @@
@model List<NzbDrone.Web.Models.HistoryModel>
@model List<HistoryModel>
@using NzbDrone.Web.Models
@using NzbDrone.Web.Helpers
@section TitleContent{
History
}
@{ViewBag.Title = "History";}
@section ActionMenu{
<ul class="sub-menu">
<li>@Ajax.ActionLink("Trim History", "Trim", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid" })</li>

View File

@ -20,9 +20,7 @@
}
</script>
}
@section TitleContent{
Logs
}
@{ ViewBag.Title = "Logs";}
@section ActionMenu{
<ul class="sub-menu">
<li>@Ajax.ActionLink("Clear Logs", "Clear", "Log", new AjaxOptions { OnSuccess = "reloadGrid" })</li>

View File

@ -1,7 +1,5 @@
@using NzbDrone.Core.Model
@section TitleContent{
Misnamed
}
@{ViewBag.Title = "Misnamed";};
@section ActionMenu{
<ul class="sub-menu">
<li>@Ajax.ActionLink("Trim History", "Trim", "History", new AjaxOptions { OnSuccess = "reloadHistoryGrid" })</li>

View File

@ -1,9 +1,7 @@
@model List<MissingEpisodeModel>
@using NzbDrone.Web.Helpers
@using NzbDrone.Web.Models;
@section TitleContent{
Missing
}
@{ViewBag.Title="Missing";};
@section HeaderContent
{
@Html.IncludeCss("Grid.css")

View File

@ -1,13 +1,12 @@
@model SeriesModel
@using NzbDrone.Web.Helpers
@using NzbDrone.Web.Models
@section TitleContent{
@Model.Title
}
@{ViewBag.Title = Model.Title;}
@section HeaderContent
{
@Html.IncludeCss("Grid.css")
}
@{ ViewBag.Title = Model.Title; }
<style>
.seasonToggleTopGroup
{

View File

@ -1,8 +1,6 @@
@using NzbDrone.Web.Models;
@model IEnumerable<NzbDrone.Core.Repository.Series>
@section TitleContent{
NzbDrone
}
@{ViewBag.Title = "NzbDrone";}
<style>
/* progress bar container */
.progressbar

View File

@ -1,7 +1,4 @@
@section TitleContent
{
Settings
}
@{ViewBag.Title = "Settings";}
<div class="jquery-tabs">
<ul>

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")

View File

@ -1,7 +1,5 @@
@model IEnumerable<NzbDrone.Core.Repository.Config>
@section TitleContent{
Configuration
}
@{ViewBag.Title = "Configuration";}
@(Html.Telerik().Grid<NzbDrone.Core.Repository.Config>()
.Name("Grid")
.TableHtmlAttributes(new { @class = "Grid" })

View File

@ -1,7 +1,5 @@
@model IEnumerable<NzbDrone.Core.Repository.IndexerDefinition>
@section TitleContent{
Indexers
}
@{ViewBag.Title = "Indexers";}
@{Html.Telerik().Grid(Model).Name("Grid")
.TableHtmlAttributes(new { @class = "Grid" })
.Render();}

View File

@ -1,8 +1,6 @@
@using NzbDrone.Web.Models
@model IEnumerable<NzbDrone.Core.Repository.JobDefinition>
@section TitleContent{
Jobs
}
@{ViewBag.Title = "Jobs";}
@{Html.Telerik().Grid(Model).Name("Grid")
.Render();}

View File

@ -1,8 +1,6 @@
@model List<NzbDrone.Web.Models.PendingProcessingModel>
@using NzbDrone.Web.Models
@section TitleContent{
Pending Processing
}
@{ViewBag.Title = "Pending Processing";}
@section ActionMenu{
@{Html.Telerik().Menu().Name("historyMenu").Items(items =>
{

View File

@ -1,9 +1,7 @@
@model List<UpcomingEpisodeModel>
@using NzbDrone.Web.Helpers
@using NzbDrone.Web.Models
@section TitleContent{
Upcoming
}
@{ViewBag.Title = "Upcoming";}
@section HeaderContent
{
@Html.IncludeCss("Grid.css")

View File

@ -1,7 +1,5 @@
@model NzbDrone.Web.Models.UpdateModel
@section TitleContent{
Update
}
@{ViewBag.Title = "Update";}
@if (Model.UpdatePackage == null)
{
<h2>

View File

@ -1,4 +1,2 @@
@section TitleContent{
Update Log
}
@{ViewBag.Title = "Update Log";}
@Html.Raw(ViewBag.Log)