mirror of https://git.48k.eu/ogcp
templates: show Delete Image only as admin
Hide the Delete Image in user mode using template conditionals. A non admin account should not have access to image deletion.master
parent
ff3e2d6ff4
commit
eb1b1c4cdf
|
@ -62,8 +62,10 @@
|
|||
form="imagesForm" formaction="{{ url_for('action_image_info') }}" formmethod="get">
|
||||
<input class="btn btn-light" type="submit" value="{{ _('List images') }}"
|
||||
form="imagesForm" formaction="{{ url_for('action_image_list') }}" formmethod="get">
|
||||
{% if current_user.admin %}
|
||||
<input class="btn btn-light" type="submit" value="{{ _('Delete image') }}"
|
||||
form="imagesForm" formaction="{{ url_for('action_image_delete') }}" formmethod="get">
|
||||
{% endif %}
|
||||
{% if btn_back %}
|
||||
<button class="btn btn-danger ml-3" type="button" id="backButton" onclick="history.back()">
|
||||
{{ _("Back") }}
|
||||
|
|
Loading…
Reference in New Issue