Make it possible to fully delete unlisted/unrated extensions #81
@ -91,10 +91,14 @@
|
|||||||
<span>{% trans 'Submit for Approval' %}</span>
|
<span>{% trans 'Submit for Approval' %}</span>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
|
{% with cannot_be_deleted_reasons=extension.cannot_be_deleted_reasons %}
|
||||||
|
{% if not cannot_be_deleted_reasons %}
|
||||||
<a href="{{ extension.get_delete_url }}" class="btn btn-danger">
|
<a href="{{ extension.get_delete_url }}" class="btn btn-danger">
|
||||||
<i class="i-trash"></i>
|
<i class="i-trash"></i>
|
||||||
<span>{% trans 'Delete Extension' %}</span>
|
<span>{% trans 'Delete Extension' %}</span>
|
||||||
</a>
|
</a>
|
||||||
|
{% endif %}
|
||||||
|
{% endwith %}
|
||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user