Skip to content

Commit 7ddaa75

Browse files
committed
Dashboard app - minor fixes
1 parent e1a00f1 commit 7ddaa75

File tree

4 files changed

+8
-12
lines changed

4 files changed

+8
-12
lines changed

apps/_dashboard/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ def swapbranch(project):
650650
# swap branches then go back to gitlog so new commits load
651651
checkout(project, branch)
652652
redirect(URL("gitlog", project))
653-
return diff2kryten(patch)
653+
# return diff2kryten(patch)
654654

655655
@action("gitshow/<project>/<commit>")
656656
@action.uses(Logged(session), "gitshow.html")
@@ -707,4 +707,4 @@ def update_translations(name):
707707
"""find all T(...) decorated strings in the code and returns them"""
708708
app_folder = os.path.join(FOLDER, name)
709709
strings = Translator.find_matches(app_folder)
710-
return {"strings": strings}
710+
return {"strings": strings}

apps/_dashboard/static/js/vue.min.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

apps/_dashboard/templates/gitlog.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<base href="[[=URL('static')]]/">
44
<style>
55
* {margin: 0;}
6-
html {background: white; color: black; font-family: "Courier"; font-size: 10px}}
6+
html {background: white; color: black; font-family: "Courier"; font-size: 10px}
77
a { color: orange; font-weight: bold}
88
td {padding: 5px 10px; color: orange}
99
td.linelength { padding: 5px 10px; color: #f1f1f1; font-weight: bold}

apps/_dashboard/templates/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ <h2><i class="fa fa-lock fa-2x"></i></h2>
3939
<h2>API error</h2>
4040
<pre v-text="last_error"></pre>
4141
<button v-on:click="close_dialog_error">Ignore and Dismiss</button>
42-
</div>"
42+
</div>
4343
<div class="panel accordion">
4444
<input type="checkbox" id="applications">
4545
<label for="applications">Installed Applications</label>
@@ -272,10 +272,12 @@ <h2>{{modal.title}}</h2>
272272
<script src="js/ace/ext-modelist.js" type="text/javascript" charset="utf-8"></script>
273273
<script src="js/utils.js"></script>
274274
<script>
275-
var USER_ID = [[= user_id or 0]];
275+
var USER_ID = Number('[[= user_id or 0 ]]');
276+
// "Number" is used only to avoid javascript linter warning about non-constant in template literal
276277
</script>
277278
<script>
278-
T.languages = [[= languages]];
279+
T.languages = JSON.parse('[[= languages ]]');
280+
// "JSON.parse" is used only to avoid javascript linter warning about non-constant in template literal
279281
</script>
280282
<script src="js/index.js"></script>
281283
</html>

0 commit comments

Comments
 (0)