mirror of https://github.com/Radarr/Radarr
RAZOR'd Log & Upcoming.
Added CSS for setting Grid font size.
This commit is contained in:
parent
273ab14a78
commit
13af6663fe
|
@ -268,3 +268,9 @@ button, input[type="button"], input[type="submit"], input[type="reset"]
|
||||||
{
|
{
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Set the font size for Grids */
|
||||||
|
.Grid
|
||||||
|
{
|
||||||
|
font-size: 13px;
|
||||||
|
}
|
|
@ -1,5 +1,6 @@
|
||||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Instrumentation.Log>>" %>
|
@model IEnumerable<NzbDrone.Core.Instrumentation.Log>
|
||||||
<asp:Content ContentPlaceHolderID="Scripts" runat="server">
|
|
||||||
|
@section Scripts{
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function onRowDataBound(e) {
|
function onRowDataBound(e) {
|
||||||
|
|
||||||
|
@ -18,19 +19,20 @@
|
||||||
//e.row.style.color = 'blue';
|
//e.row.style.color = 'blue';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
}
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
||||||
|
@section TitleContent{
|
||||||
Logs
|
Logs
|
||||||
</asp:Content>
|
}
|
||||||
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
|
||||||
<%
|
@section ActionMenu{
|
||||||
Html.Telerik().Menu().Name("logMenu").Items(items => items.Add().Text("Clear Logs").Action("Clear", "Log")).
|
@{Html.Telerik().Menu().Name("logMenu").Items(items => items.Add().Text("Clear Logs").Action("Clear", "Log"))
|
||||||
Render();
|
.Render();}
|
||||||
%>
|
}
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
@section MainContent{
|
||||||
<%
|
@{Html.Telerik().Grid(Model).Name("logsGrid")
|
||||||
Html.Telerik().Grid(Model).Name("logs")
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||||||
.Columns(columns =>
|
.Columns(columns =>
|
||||||
{
|
{
|
||||||
columns.Bound(c => c.Time).Title("Time").Width(190);
|
columns.Bound(c => c.Time).Title("Time").Width(190);
|
||||||
|
@ -49,6 +51,6 @@
|
||||||
c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
c.PageSize(50).Position(GridPagerPosition.Bottom).Style(GridPagerStyles.NextPrevious))
|
||||||
.Filterable()
|
.Filterable()
|
||||||
.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
||||||
.Render();
|
.Render();}
|
||||||
%>
|
}
|
||||||
</asp:Content>
|
|
|
@ -14,9 +14,6 @@
|
||||||
<link href="../../Content/style.css" rel="stylesheet" type="text/css" />
|
<link href="../../Content/style.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
|
<link href="../../Content/jquery-ui.css" rel="stylesheet" type="text/css" />
|
||||||
<link href="../../Content/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
|
<link href="../../Content/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
|
||||||
@*<link href="../../Content/jquery-simpledropdown.css" rel="stylesheet" type="text/css" />*@
|
|
||||||
@*<script type="text/javascript" src="../../Scripts/jquery-1.5.2.min.js"></script>*@
|
|
||||||
@*<script type="text/javascript" src="../../Scripts/jquery-ui-1.8.8.min.js"></script>*@
|
|
||||||
|
|
||||||
@RenderSection("HeaderContent", required: false)
|
@RenderSection("HeaderContent", required: false)
|
||||||
</head>
|
</head>
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<List<NzbDrone.Web.Models.UpcomingEpisodeModel>>" %>
|
@model List<NzbDrone.Web.Models.UpcomingEpisodeModel>
|
||||||
<%@ Import Namespace="NzbDrone.Web.Models" %>
|
@using NzbDrone.Web.Models
|
||||||
|
|
||||||
|
@section Scripts{
|
||||||
|
|
||||||
<asp:Content ID="Content1" ContentPlaceHolderID="Scripts" runat="server">
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function onRowDataBound(e) {
|
function onRowDataBound(e) {
|
||||||
|
|
||||||
e.row.style.boarder = "";
|
e.row.style.boarder = "";
|
||||||
|
|
||||||
if (e.dataItem.Level == 3) {
|
if (e.dataItem.Level == 3) {
|
||||||
|
@ -20,23 +20,23 @@
|
||||||
//e.row.style.color = 'blue';
|
//e.row.style.color = 'blue';
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
}
|
||||||
<asp:Content ID="Content2" ContentPlaceHolderID="TitleContent" runat="server">
|
|
||||||
Upcoming
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
|
||||||
<%
|
|
||||||
Html.Telerik().Menu().Name("historyMenu").Items(
|
|
||||||
items => { items.Add().Text("Start RSS Sync").Action("RssSync", "Series"); }).Render();
|
|
||||||
%>
|
|
||||||
</asp:Content>
|
|
||||||
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
|
|
||||||
|
|
||||||
|
@section TitleContent{
|
||||||
|
Upcoming
|
||||||
|
}
|
||||||
|
|
||||||
|
@section ActionMenu{
|
||||||
|
@{Html.Telerik().Menu().Name("historyMenu").Items(
|
||||||
|
items => { items.Add().Text("Start RSS Sync").Action("RssSync", "Series"); }).Render();}
|
||||||
|
}
|
||||||
|
|
||||||
|
@section MainContent{
|
||||||
<div id="yesterday">
|
<div id="yesterday">
|
||||||
<h2>Yesterday</h2>
|
<h2>Yesterday</h2>
|
||||||
<%
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
|
||||||
Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Yesterday").NoRecordsTemplate(
|
|
||||||
"No watched shows aired yesterday")
|
"No watched shows aired yesterday")
|
||||||
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||||||
.Columns(columns =>
|
.Columns(columns =>
|
||||||
{
|
{
|
||||||
columns.Bound(c => c.SeriesName)
|
columns.Bound(c => c.SeriesName)
|
||||||
|
@ -59,16 +59,15 @@
|
||||||
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
||||||
//.Filterable()
|
//.Filterable()
|
||||||
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
||||||
.Render();
|
.Render();}
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div id="today">
|
<div id="today">
|
||||||
<h2>Today</h2>
|
<h2>Today</h2>
|
||||||
<%
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
||||||
Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Today").NoRecordsTemplate("No watched shows airing today.")
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||||||
.Columns(columns =>
|
.Columns(columns =>
|
||||||
{
|
{
|
||||||
columns.Bound(c => c.SeriesName)
|
columns.Bound(c => c.SeriesName)
|
||||||
|
@ -91,17 +90,16 @@
|
||||||
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
||||||
//.Filterable()
|
//.Filterable()
|
||||||
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
||||||
.Render();
|
.Render();}
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
<div id="week">
|
<div id="week">
|
||||||
<h2>7-Day Forecast</h2>
|
<h2>7-Day Forecast</h2>
|
||||||
<%
|
@{Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
|
||||||
Html.Telerik().Grid<UpcomingEpisodeModel>().Name("Week").NoRecordsTemplate(
|
|
||||||
"No watched shows airing in the next week...")
|
"No watched shows airing in the next week...")
|
||||||
|
.TableHtmlAttributes(new { @class = "Grid" })
|
||||||
.Columns(columns =>
|
.Columns(columns =>
|
||||||
{
|
{
|
||||||
columns.Bound(c => c.SeriesName)
|
columns.Bound(c => c.SeriesName)
|
||||||
|
@ -124,7 +122,6 @@
|
||||||
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
//.Pageable(c => c.PageSize(20).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
||||||
//.Filterable()
|
//.Filterable()
|
||||||
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
//.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
||||||
.Render();
|
.Render();}
|
||||||
%>
|
|
||||||
</div>
|
</div>
|
||||||
</asp:Content>
|
}
|
Loading…
Reference in New Issue