|
|
@ -1,6 +1,26 @@
|
|
|
|
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<NzbDrone.Core.Instrumentation.Log>>" %>
|
|
|
|
<%@ 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" %>
|
|
|
|
<%@ Import Namespace="Telerik.Web.Mvc.UI" %>
|
|
|
|
|
|
|
|
<asp:Content ContentPlaceHolderID="Scripts" runat="server">
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
|
|
|
function onRowDataBound(e) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
e.row.style.boarder = "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (e.dataItem.Level == 3) {
|
|
|
|
|
|
|
|
e.row.style.backgroundColor = "#FFD700";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (e.dataItem.Level == 4) {
|
|
|
|
|
|
|
|
e.row.style.backgroundColor = "#FF7500";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
else if (e.dataItem.Level == 5) {
|
|
|
|
|
|
|
|
e.row.style.backgroundColor = "black";
|
|
|
|
|
|
|
|
e.row.style.Color = "white";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
//e.row.style.color = 'blue';
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
</asp:Content>
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
|
|
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
|
|
|
|
Logs
|
|
|
|
Logs
|
|
|
|
</asp:Content>
|
|
|
|
</asp:Content>
|
|
|
@ -19,13 +39,20 @@
|
|
|
|
columns.Bound(c => c.Message);
|
|
|
|
columns.Bound(c => c.Message);
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Log"))
|
|
|
|
.DataBinding(dataBinding => dataBinding.Ajax().Select("_AjaxBinding", "Log"))
|
|
|
|
//.DetailView(detailView => detailView.Template(e => Html.RenderPartial("LogDetail", e)))
|
|
|
|
.DetailView(detailView => detailView.ClientTemplate(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
"<div><#= Logger #></div>" +
|
|
|
|
|
|
|
|
"<div><#= ExceptionType #></div>" +
|
|
|
|
|
|
|
|
"<div><#= ExceptionMessage #></div>" +
|
|
|
|
|
|
|
|
"<div><#= ExceptionString #></div>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
))
|
|
|
|
.Sortable(rows => rows.OrderBy(epSort => epSort.Add(c => c.Time).Descending()).Enabled(true))
|
|
|
|
.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))
|
|
|
|
.Pageable(c => c.PageSize(50).Position(GridPagerPosition.Both).Style(GridPagerStyles.PageInput | GridPagerStyles.NextPreviousAndNumeric))
|
|
|
|
//.Groupable()
|
|
|
|
//.Groupable()
|
|
|
|
.Filterable()
|
|
|
|
.Filterable()
|
|
|
|
|
|
|
|
.ClientEvents(c => c.OnRowDataBound("onRowDataBound"))
|
|
|
|
//.Groupable(grouping => grouping.Groups(groups => groups.Add(c => c.Time.Date)).Enabled(true))
|
|
|
|
//.Groupable(grouping => grouping.Groups(groups => groups.Add(c => c.Time.Date)).Enabled(true))
|
|
|
|
.Render();
|
|
|
|
.Render();
|
|
|
|
%>
|
|
|
|
%>
|
|
|
|
</asp:Content>
|
|
|
|
</asp:Content>
|
|
|
|
|
|
|
|
|
|
|
|