mirror of
https://github.com/simon987/od-database.git
synced 2025-12-13 14:59:02 +00:00
Added admin blacklist control in dashboard
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user