contentdb/app/templates/admin/list.html

62 lines
2.6 KiB
HTML
Raw Normal View History

2018-05-13 16:28:27 +02:00
{% extends "base.html" %}
{% block title %}
Admin Tools
2018-05-13 16:28:27 +02:00
{% endblock %}
{% block content %}
2020-07-12 04:38:14 +02:00
<div class="row">
<div class="col-md-6">
<div class="list-group">
<a class="list-group-item list-group-item-action" href="{{ url_for('users.list_all') }}">User list</a>
<a class="list-group-item list-group-item-action" href="{{ url_for('admin.tag_list') }}">Tag Editor</a>
<a class="list-group-item list-group-item-action" href="{{ url_for('admin.license_list') }}">License Editor</a>
<a class="list-group-item list-group-item-action" href="{{ url_for('admin.version_list') }}">Version Editor</a>
2020-07-17 21:48:51 +02:00
<a class="list-group-item list-group-item-action" href="{{ url_for('admin.warning_list') }}">Warning Editor</a>
2020-07-12 04:38:14 +02:00
<a class="list-group-item list-group-item-action" href="{{ url_for('admin.switch_user') }}">Sign in as another user</a>
</div>
</div>
2020-07-12 04:38:14 +02:00
<div class="col-md-6">
<div class="card mb-4">
<h2 class="card-header">Do action</h2>
2020-07-12 04:38:14 +02:00
<form method="post" action="" class="card-body">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<div class="row px-3">
<select name="action" class="custom-select col">
<option value="delstuckreleases" selected>Delete stuck releases</option>
<option value="checkreleases">Validate all Zip releases</option>
<option value="reimportpackages">Reimport meta</option>
<option value="importmodlist">Import forum topics</option>
<option value="importforeign">Import foreign release downloads</option>
2020-07-12 04:38:14 +02:00
<option value="recalcscores">Recalculate package scores</option>
<option value="checkusers">Check forum users</option>
<option value="importscreenshots">Import screenshots from VCS</option>
<option value="cleanuploads">Delete unreachable uploads</option>
</select>
<input type="submit" value="Perform" class="col-sm-auto btn btn-primary ml-2" />
</div>
</form>
</div>
2018-05-25 19:28:24 +02:00
2020-07-12 04:38:14 +02:00
<div class="card">
<h2 class="card-header">Restore Package</h2>
2018-05-25 19:28:24 +02:00
2020-07-12 04:38:14 +02:00
<form method="post" action="" class="card-body">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<input type="hidden" name="action" value="restore" />
<div class="row px-3">
<select name="package" class="custom-select col">
{% for p in deleted_packages %}
<option value={{ p.id }}>{{ p.id}}) {{ p.title }} by {{ p.author.display_name }}</option>
{% endfor %}
</select>
<input type="submit" value="Restore" class="col-sm-auto btn btn-primary ml-2" />
</div>
</form>
</div>
</div>
</div>
2018-05-13 16:28:27 +02:00
{% endblock %}