Added admin clear & delete buttons for websites

This commit is contained in:
Simon
2018-06-20 10:48:51 -04:00
parent cef9e2c8a1
commit 35837463cd
8 changed files with 107 additions and 20 deletions

View File

@@ -43,9 +43,11 @@
</div>
</form>
<br>
<hr>
<h3>Misc actions</h3>
<p>TODO: </p>
<a class="btn btn-danger" href="/website/delete_empty">Delete websites with no associated files that are not queued</a>
<hr>
<a class="btn btn-info" href="/logout">Logout</a>

View File

@@ -40,6 +40,10 @@
<hr>
<a href="/website/{{ website.id }}/links" class="btn btn-shadow btn-primary">Link list</a>
<a href="/website/{{ website.id }}/json_chart" class="btn btn-shadow btn-primary">Summary (JSON)</a>
{% if "username" in session %}
<a href="/website/{{ website.id }}/clear" class="btn btn-danger"><i class="fas fa-exclamation"></i> Clear</a>
<a href="/website/{{ website.id }}/delete" class="btn btn-danger"><i class="fas fa-trash"></i> Delete</a>
{% endif %}
</div>
</div>
</div>