pull/3113/head
parent
c8a8fb4d62
commit
fa0af257ff
@ -0,0 +1,15 @@
|
||||
<configuration>
|
||||
|
||||
<configSections>
|
||||
<section name="configurationRedirection" />
|
||||
</configSections>
|
||||
|
||||
<configProtectedData>
|
||||
<providers>
|
||||
<add name="IISRsaProvider" type="" description="Uses RsaCryptoServiceProvider to encrypt and decrypt" keyContainerName="iisConfigurationKey" cspProviderName="" useMachineContainer="true" useOAEP="false" />
|
||||
</providers>
|
||||
</configProtectedData>
|
||||
|
||||
<configurationRedirection />
|
||||
|
||||
</configuration>
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,12 +1,19 @@
|
||||
<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>
|
||||
|
||||
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Home Page
|
||||
Logs
|
||||
</asp:Content>
|
||||
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
||||
<%
|
||||
Html.Telerik().Menu().Name("logMenu").Items(items => items.Add().Text("Clear Logs").Action("Clear", "Log")).Render();
|
||||
%>
|
||||
</asp:Content>
|
||||
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<h2><%: ViewData["Message"] %></h2>
|
||||
<h2>
|
||||
<%: ViewData["Message"] %></h2>
|
||||
<p>
|
||||
To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">http://asp.net/mvc</a>.
|
||||
To learn more about ASP.NET MVC visit <a href="http://asp.net/mvc" title="ASP.NET MVC Website">
|
||||
http://asp.net/mvc</a>.
|
||||
</p>
|
||||
</asp:Content>
|
||||
|
@ -0,0 +1,31 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Instrumentation.Log>>" %>
|
||||
|
||||
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
||||
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
||||
Logs
|
||||
</asp:Content>
|
||||
<asp:Content ID="Menu" ContentPlaceHolderID="ActionMenu" runat="server">
|
||||
<%
|
||||
Html.Telerik().Menu().Name("logMenu").Items(items => items.Add().Text("Clear Logs").Action("Clear", "Log")).Render();
|
||||
%>
|
||||
</asp:Content>
|
||||
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
|
||||
<%Html.Telerik().Grid(Model).Name("logs")
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Time).Title("Time").Width(190);
|
||||
//columns.Bound(c => c.Time).Title("Time").Template(c => c.Time.ToShortTimeString()).Groupable(false);
|
||||
columns.Bound(c => c.DisplayLevel).Title("Level").Width(0);
|
||||
columns.Bound(c => c.Message);
|
||||
})
|
||||
.DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Log"))
|
||||
//.DetailView(detailView => detailView.Template(e => Html.RenderPartial("LogDetail", e)))
|
||||
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true))
|
||||
.Pageable(c => c.PageSize(50).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
||||
//.Groupable()
|
||||
.Filterable()
|
||||
//.Groupable(grouping => grouping.Groups(groups => groups.Add(c => c.Time.Date)).Enabled(true))
|
||||
.Render();
|
||||
%>
|
||||
</asp:Content>
|
||||
|
@ -0,0 +1,15 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NzbDrone.Core.Instrumentation.Log>" %>
|
||||
<ul>
|
||||
<li>
|
||||
<%: Model.Logger %>
|
||||
</li>
|
||||
<li>
|
||||
<%: Model.ExceptionType%>
|
||||
</li>
|
||||
<li>
|
||||
<%: Model.ExceptionMessage%>
|
||||
</li>
|
||||
<li>
|
||||
<%: Model.ExceptionString%>
|
||||
</li>
|
||||
</ul>
|
@ -0,0 +1,14 @@
|
||||
<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<NzbDrone.Core.Repository.Episode>" %>
|
||||
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
||||
<%: Model.Overview %>
|
||||
<%:
|
||||
Html.Telerik().Grid(Model.Files)
|
||||
.Name("files_" + Model.EpisodeId)
|
||||
.Columns(columns =>
|
||||
{
|
||||
columns.Bound(c => c.Path);
|
||||
columns.Bound(c => c.Quality);
|
||||
columns.Bound(c => c.DateAdded);
|
||||
})
|
||||
.Footer(false)
|
||||
%>
|
Loading…
Reference in new issue