Make it possible to fully delete unlisted/unrated extensions #81

Merged
Anna Sirota merged 24 commits from fully-delete-extension into main 2024-04-19 11:00:19 +02:00
Showing only changes of commit 62931d361e - Show all commits

View File

@ -91,10 +91,14 @@
<span>{% trans 'Submit for Approval' %}</span> <span>{% trans 'Submit for Approval' %}</span>
</button> </button>
<a href="{{ extension.get_delete_url }}" class="btn btn-danger"> {% with cannot_be_deleted_reasons=extension.cannot_be_deleted_reasons %}
<i class="i-trash"></i> {% if not cannot_be_deleted_reasons %}
<span>{% trans 'Delete Extension' %}</span> <a href="{{ extension.get_delete_url }}" class="btn btn-danger">
</a> <i class="i-trash"></i>
<span>{% trans 'Delete Extension' %}</span>
</a>
{% endif %}
{% endwith %}
</div> </div>
</section> </section>
</div> </div>