aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/wiki.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2016-12-14 11:55:52 +0100
committerMario Vavti <mario@mariovavti.com>2016-12-14 11:56:42 +0100
commitf79c6190654ec3912abc34eb0568331983a968a3 (patch)
tree860dd4ca0914a0364fb7d27bd9e416e2829af2e4 /view/tpl/wiki.tpl
parenta65ebbb3193b05edcd29c89038e21ba6a856af20 (diff)
downloadvolse-hubzilla-f79c6190654ec3912abc34eb0568331983a968a3.tar.gz
volse-hubzilla-f79c6190654ec3912abc34eb0568331983a968a3.tar.bz2
volse-hubzilla-f79c6190654ec3912abc34eb0568331983a968a3.zip
wiki: do not show revert buttons if we do not have write perms and minor cleanup
Diffstat (limited to 'view/tpl/wiki.tpl')
-rw-r--r--view/tpl/wiki.tpl7
1 files changed, 1 insertions, 6 deletions
diff --git a/view/tpl/wiki.tpl b/view/tpl/wiki.tpl
index a84209b37..4638e4758 100644
--- a/view/tpl/wiki.tpl
+++ b/view/tpl/wiki.tpl
@@ -41,7 +41,7 @@
</div>
</form>
</div>
- <div id="wiki-content-container" class="section-content-wrapper" {{if $hideEditor}}style="display: none;"{{/if}}>
+ <div id="wiki-content-container" class="section-content-wrapper">
<ul class="nav nav-tabs" id="wiki-nav-tabs">
<li id="edit-pane-tab"><a data-toggle="tab" href="#edit-pane">{{$editOrSourceLabel}}</a></li>
<li class="active"><a data-toggle="tab" href="#preview-pane" id="wiki-get-preview">View</a></li>
@@ -225,11 +225,6 @@
if (data.success) {
$('#wiki_page_list_container').html(data.pages);
$('#wiki_page_list_container').show();
- {{if $showNewPageButton}}
- $('#new-page-button').show();
- {{else}}
- $('#new-page-button').hide();
- {{/if}}
} else {
alert('Error fetching page list!');
window.console.log('Error fetching page list!');