Private GIT
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SickRage-1
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
vlbox
SickRage-1
Commits
8ba2301a
Commit
8ba2301a
authored
Jul 30, 2015
by
Dustyn Gibson
Browse files
Options
Downloads
Patches
Plain Diff
More mako
parent
2ec941ce
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
gui/slick/interfaces/default/errorlogs.mako
+6
-7
6 additions, 7 deletions
gui/slick/interfaces/default/errorlogs.mako
gui/slick/interfaces/default/viewlogs.mako
+20
-20
20 additions, 20 deletions
gui/slick/interfaces/default/viewlogs.mako
with
26 additions
and
27 deletions
gui/slick/interfaces/default/errorlogs.mako
+
6
−
7
View file @
8ba2301a
<%
from sickbeard import classes
from sickbeard.common import *
global header="Logs & Errors"
global
title="Logs & Errors"
title="Logs & Errors"
global
sbPath = ".."
sbPath = ".."
global
topmenu="errorlogs"
topmenu="errorlogs"
%>
<%
!
include file="/inc_top.mako"/>
<%include file="/inc_top.mako"/>
% if not header is UNDEFINED:
<h1 class="header">${header}</h1>
...
...
@@ -30,4 +29,4 @@ window.setInterval( "location.reload(true)", 600000); // Refresh every 10 minute
//-->
</script>
<
!
%include file="/inc_bottom.mako"/>
<%include file="/inc_bottom.mako"/>
This diff is collapsed.
Click to expand it.
gui/slick/interfaces/default/viewlogs.mako
+
20
−
20
View file @
8ba2301a
<%
!
<%
import sickbeard
from sickbeard import classes
from sickbeard.common import *
from sickbeard.logger import reverseNames
global header="Log File"
global title="Logs"
%>
<%!
header="Log File"
title="Logs"
global
sbPath = ".."
sbPath = ".."
global topmenu="errorlogs"
import os.path
include file=os.path.join(sickbeard.PROG_DIR, "gui/slick/interfaces/default/inc_top.mako")
topmenu="errorlogs"
%>
<%include file="/inc_top.mako"/>
<script type="text/javascript" charset="utf-8">
<!--
\$(document).ready(
...
...
@@ -27,7 +29,7 @@ function(){
\$('#logFilter').prop('disabled', true);
\$('#logSearch').prop('disabled', true);
document.body.style.cursor='wait'
url = '$sbRoot/errorlogs/viewlog/?minLevel='+\$('select[name=minLevel]').val()+'&logFilter='+\$('select[name=logFilter]').val()+'&logSearch='+\$('#logSearch').val()
url = '$
{
sbRoot
}
/errorlogs/viewlog/?minLevel='+\$('select[name=minLevel]').val()+'&logFilter='+\$('select[name=logFilter]').val()+'&logSearch='+\$('#logSearch').val()
window.location.href = url
});
...
...
@@ -53,7 +55,7 @@ function(){
\$('#minLevel option[value=20]').prop('selected', true);
\$('#minLevel').prop('disabled', false);
\$('#logFilter').prop('disabled', false);
url = '$sbRoot/errorlogs/viewlog/?minLevel='+\$('select[name=minLevel]').val()+'&logFilter='+\$('select[name=logFilter]').val()+'&logSearch='+\$('#logSearch').val()
url = '$
{
sbRoot
}
/errorlogs/viewlog/?minLevel='+\$('select[name=minLevel]').val()+'&logFilter='+\$('select[name=logFilter]').val()+'&logSearch='+\$('#logSearch').val()
window.location.href = url
} else {
\$('#minLevel').prop('disabled', true);
...
...
@@ -66,34 +68,32 @@ function(){
% if not header is UNDEFINED:
<h1 class="header">${header}</h1>
% else
% else
:
<h1 class="title">${title}</h1>
% endif
<div class="h2footer pull-right">Minimum logging level to display: <select name="minLevel" id="minLevel" class="form-control form-control-inline input-sm">
% levels = reverseNames.keys()
${
levels.sort(lambda x,y: cmp(reverseNames[x], reverseNames[y]))
}
<
% levels = reverseNames.keys()
%>
<%
levels.sort(lambda x,y: cmp(reverseNames[x], reverseNames[y]))
%>
% for level in levels:
% if not sickbeard.DEBUG and (level == 'DEBUG' or level == 'DB')
% continue
% if not sickbeard.DEBUG and (level == 'DEBUG' or level == 'DB')
:
<
% continue
%>
% endif
<option value="${reverseNames[level]}" ${(' selected="selected"', '')[minLevel == reverseNames[level]]}>${level.title()}</option>
% endfor
</select>
Filter log by: <select name="logFilter" id="logFilter" class="form-control form-control-inline input-sm">
% for logNameFilter in sorted(logNameFilters)
% for logNameFilter in sorted(logNameFilters)
:
<option value="${logNameFilter}" #if $logFilter == $logNameFilter then "selected=\"selected\"" else ""#>${logNameFilters[logNameFilter]}</option>
% endfor
</select>
Search log by:
<input type="text" name="logSearch" placeholder="clear to reset" id="logSearch" value="${(log
S
earch
, ''
)[logSearch == True}" class="form-control form-control-inline input-sm" />
<input type="text" name="logSearch" placeholder="clear to reset" id="logSearch" value="${(
'',
log
s
earch)[logSearch == True
]
}" class="form-control form-control-inline input-sm" />
</div>
<br />
<div class="align-left"><pre>
% filter WebSafe
${logLines}
% endfilter
</pre>
</div>
<br />
...
...
@@ -103,4 +103,4 @@ window.setInterval( "location.reload(true)", 600000); // Refresh every 10 minute
//-->
</script>
%
include file=
os.path.join(sickbeard.PROG_DIR, "gui/slick/interfaces/default
/inc_bottom.mako"
)
<
%include file=
"
/inc_bottom.mako"
/>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment