Added admin blacklist control in dashboard

This commit is contained in:
Simon
2018-06-20 11:28:06 -04:00
parent 35837463cd
commit 7400bdc2a9
5 changed files with 106 additions and 13 deletions

View File

@@ -43,11 +43,42 @@
</div>
</form>
<br>
<hr>
<h3>Blacklist</h3>
<table class="table table-striped">
<thead>
<tr>
<th>Netloc</th>
<th>Action</th>
</tr>
</thead>
<tbody>
{% for item in blacklist %}
<tr>
<td>{{ item.netloc }}</td>
<td><a class="btn btn-danger" href="/blacklist/{{ item.id }}/delete">Delete</a></td>
</tr>
{% endfor %}
</tbody>
</table>
<form class="form" action="/blacklist/add" method="POST">
<div class="form-row">
<div class="col col-md-10">
<input class="form-control" name="url" placeholder="Url">
</div>
<div class="col col-md-2">
<input type="submit" class="form-control btn btn-primary" value="Add">
</div>
</div>
</form>
<br>
<hr>
<h3>Misc actions</h3>
<a class="btn btn-danger" href="/website/delete_empty">Delete websites with no associated files that are not queued</a>
<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>