Skip to content

Commit

Permalink
Add missing router, change errorlogs header
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkykh committed Aug 22, 2018
1 parent c636316 commit 05ab1ae
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 12 deletions.
1 change: 1 addition & 0 deletions themes-default/slim/views/addShows_trendingShows.mako
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
window.app = {};
window.app = new Vue({
store,
router,
el: '#vue-wrap',
data() {
return {
Expand Down
18 changes: 14 additions & 4 deletions themes-default/slim/views/errorlogs.mako
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@
from medusa import classes
%>
<%block name="scripts">
<%
if logLevel == logger.WARNING:
page_header = 'Warning Logs'
else:
page_header = 'Error Logs'
%>
<script>
window.app = {};
window.app = new Vue({
store,
router,
el: '#vue-wrap'
el: '#vue-wrap',
data() {
return {
header: '${page_header}'
};
}
});
</script>
</%block>
Expand All @@ -28,15 +40,13 @@ pre {
from mako.filters import html_escape
if logLevel == logger.WARNING:
errors = classes.WarningViewer.errors
page_header = 'Warning Logs'
else:
errors = classes.ErrorViewer.errors
page_header = 'Error Logs'
%>
<div class="row">
<div class="col-md-12 wide">
<h1 class="header">${page_header}</h1>
<h1 class="header">{{ header }}</h1>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions themes/dark/templates/addShows_trendingShows.mako
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
window.app = {};
window.app = new Vue({
store,
router,
el: '#vue-wrap',
data() {
return {
Expand Down
18 changes: 14 additions & 4 deletions themes/dark/templates/errorlogs.mako
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@
from medusa import classes
%>
<%block name="scripts">
<%
if logLevel == logger.WARNING:
page_header = 'Warning Logs'
else:
page_header = 'Error Logs'
%>
<script>
window.app = {};
window.app = new Vue({
store,
router,
el: '#vue-wrap'
el: '#vue-wrap',
data() {
return {
header: '${page_header}'
};
}
});
</script>
</%block>
Expand All @@ -28,15 +40,13 @@ pre {
from mako.filters import html_escape
if logLevel == logger.WARNING:
errors = classes.WarningViewer.errors
page_header = 'Warning Logs'
else:
errors = classes.ErrorViewer.errors
page_header = 'Error Logs'
%>
<div class="row">
<div class="col-md-12 wide">
<h1 class="header">${page_header}</h1>
<h1 class="header">{{ header }}</h1>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions themes/light/templates/addShows_trendingShows.mako
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
window.app = {};
window.app = new Vue({
store,
router,
el: '#vue-wrap',
data() {
return {
Expand Down
18 changes: 14 additions & 4 deletions themes/light/templates/errorlogs.mako
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,24 @@
from medusa import classes
%>
<%block name="scripts">
<%
if logLevel == logger.WARNING:
page_header = 'Warning Logs'
else:
page_header = 'Error Logs'
%>
<script>
window.app = {};
window.app = new Vue({
store,
router,
el: '#vue-wrap'
el: '#vue-wrap',
data() {
return {
header: '${page_header}'
};
}
});
</script>
</%block>
Expand All @@ -28,15 +40,13 @@ pre {
from mako.filters import html_escape
if logLevel == logger.WARNING:
errors = classes.WarningViewer.errors
page_header = 'Warning Logs'
else:
errors = classes.ErrorViewer.errors
page_header = 'Error Logs'
%>
<div class="row">
<div class="col-md-12 wide">
<h1 class="header">${page_header}</h1>
<h1 class="header">{{ header }}</h1>
</div>
</div>
Expand Down

0 comments on commit 05ab1ae

Please sign in to comment.