Merge pull request #29 from FlareCO/main

Update ldd.html.j2
This commit is contained in:
Aaron Kimbrell 2022-05-02 08:44:19 -05:00 committed by GitHub
commit 1dbb637053
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@
Credit to sttng Credit to sttng
</a> </a>
<br/> <br/>
{% if property_data %} {% if (property_data and current_user.gm_level >= 3) %}
<a role="button" class="btn text-{% if property_data.mod_approved %}danger{% else %}success{% endif %} btn-block" <a role="button" class="btn text-{% if property_data.mod_approved %}danger{% else %}success{% endif %} btn-block"
href='{{url_for('properties.approve', id=property_data.id)}}'> href='{{url_for('properties.approve', id=property_data.id)}}'>
{% if property_data.mod_approved %} Unapprove {% else %} Approve {% endif %} {% if property_data.mod_approved %} Unapprove {% else %} Approve {% endif %}