aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/generic_modal.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:55:52 +0100
commit028935a318e5848542faa551f3d39bbe8b365447 (patch)
treebb9d6b47318393c94093d838364cd9f81d16cc22 /view/tpl/generic_modal.tpl
parent62353191e8759263d6279822d369ac1ae22f0a5f (diff)
downloadvolse-hubzilla-028935a318e5848542faa551f3d39bbe8b365447.tar.gz
volse-hubzilla-028935a318e5848542faa551f3d39bbe8b365447.tar.bz2
volse-hubzilla-028935a318e5848542faa551f3d39bbe8b365447.zip
wiki: do not show revert buttons if we do not have write perms and minor cleanup
Diffstat (limited to 'view/tpl/generic_modal.tpl')
-rw-r--r--view/tpl/generic_modal.tpl4
1 files changed, 3 insertions, 1 deletions
diff --git a/view/tpl/generic_modal.tpl b/view/tpl/generic_modal.tpl
index 3f7326e71..2bbea42b3 100644
--- a/view/tpl/generic_modal.tpl
+++ b/view/tpl/generic_modal.tpl
@@ -8,8 +8,10 @@
<div class="modal-body" id="generic-modal-body-{{$id}}"></div>
<div class="modal-footer">
<button id="generic-modal-cancel-{{$id}}" type="button" class="btn btn-default" data-dismiss="modal">{{$cancel}}</button>
+ {{if $ok}}
<button id="generic-modal-ok-{{$id}}" type="button" class="btn btn-primary">{{$ok}}</button>
+ {{/if}}
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
-</div><!-- /.modal --> \ No newline at end of file
+</div><!-- /.modal -->