Page banner is now used for browser title.

pull/4/head
kay.one 13 years ago
parent 418fcbd91e
commit 4f09778f98

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

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

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

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

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

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

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

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

@ -4,6 +4,15 @@
@using NzbDrone.Web.Helpers @using NzbDrone.Web.Helpers
@section HeaderContent @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) @if (!EnviromentProvider.IsProduction)
{ {
@MvcMiniProfiler.MiniProfiler.RenderIncludes() @MvcMiniProfiler.MiniProfiler.RenderIncludes()
@ -23,7 +32,7 @@
<input id="localSeriesLookup" type="text" /> <input id="localSeriesLookup" type="text" />
</div> </div>
<div id="logo"> <div id="logo">
@RenderSection("TitleContent", required: false) @ViewBag.Title
</div> </div>
<div id="page"> <div id="page">
@RenderSection("ActionMenu", required: false) @RenderSection("ActionMenu", required: false)

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

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

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

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

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

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

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

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

Loading…
Cancel
Save