diff options
author | 2018-04-17 23:27:59 +0100 | |
---|---|---|
committer | 2018-04-17 23:27:59 +0100 | |
commit | 463762b008f31a5817eff1c33b233567cfba00a4 (patch) | |
tree | 871ea01f702be1f0387bd6adc5e9a9f8551aa032 | |
parent | Add wiki audit logs (#52) (diff) |
Fix revision list JS & add menu item for revisions
-rw-r--r-- | static/js/revision_diff.js | 4 | ||||
-rw-r--r-- | templates/wiki/base.html | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/static/js/revision_diff.js b/static/js/revision_diff.js index 86f30b41..2b412d46 100644 --- a/static/js/revision_diff.js +++ b/static/js/revision_diff.js @@ -1,6 +1,6 @@ "use strict"; -function(){ +(function() { let buttons = document.querySelectorAll("td input"); // Fetch all radio buttons let id_reg = /compare-(before|after)-([\w|-]+)/; // Matches compare-after/before-ID @@ -72,4 +72,4 @@ buttons.forEach(function(button){ radioButtonChecked(button); } }); -}(); +})(); diff --git a/templates/wiki/base.html b/templates/wiki/base.html index b2545977..0eb410ad 100644 --- a/templates/wiki/base.html +++ b/templates/wiki/base.html @@ -92,6 +92,11 @@ <i class="uk-icon fas fa-fw fa-code"></i> Source </a> </li> + <li> + <a href="{{ url_for("history.show", page=page) }}"> + <i class="uk-icon fas fa-fw fa-history"></i> Revisions + </a> + </li> {% else %} <li> <a href="{{ url_for("wiki.page", page=page) }}"> |