2018-05-13 16:28:27 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-11-14 01:56:28 +01:00
|
|
|
Admin Tools
|
2018-05-13 16:28:27 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<ul>
|
2019-11-16 00:51:42 +01:00
|
|
|
<li><a href="{{ url_for('users.list_all') }}">User list</a></li>
|
|
|
|
<li><a href="{{ url_for('admin.tag_list') }}">Tag Editor</a></li>
|
|
|
|
<li><a href="{{ url_for('admin.license_list') }}">License Editor</a></li>
|
|
|
|
<li><a href="{{ url_for('admin.version_list') }}">Version Editor</a></li>
|
|
|
|
<li><a href="{{ url_for('admin.switch_user') }}">Sign in as another user</a></li>
|
2018-05-13 16:28:27 +02:00
|
|
|
</ul>
|
2018-05-15 16:00:12 +02:00
|
|
|
|
2018-12-22 14:14:08 +01:00
|
|
|
<div class="card my-4">
|
|
|
|
<h2 class="card-header">Do action</h2>
|
2018-05-15 16:00:12 +02:00
|
|
|
|
2018-12-22 14:14:08 +01:00
|
|
|
<form method="post" action="" class="card-body">
|
2018-05-15 16:00:12 +02:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
<select name="action">
|
2019-11-15 00:38:55 +01:00
|
|
|
<option value="delstuckreleases" selected>Delete stuck releases</option>
|
2020-01-19 02:59:00 +01:00
|
|
|
<option value="checkreleases">Validate all Zip releases</option>
|
2020-07-12 03:22:35 +02:00
|
|
|
<option value="reimportpackages">Reimport meta</option>
|
2019-11-15 00:38:55 +01:00
|
|
|
<option value="importmodlist">Import forum topics</option>
|
2018-07-28 18:26:28 +02:00
|
|
|
<option value="recalcscores">Recalculate package scores</option>
|
2018-12-25 20:49:17 +01:00
|
|
|
<option value="checkusers">Check forum users</option>
|
2018-12-21 15:45:54 +01:00
|
|
|
<option value="importscreenshots">Import screenshots from VCS</option>
|
2020-05-30 17:48:37 +02:00
|
|
|
<option value="cleanuploads">Delete unreachable uploads</option>
|
2018-07-28 18:26:28 +02:00
|
|
|
<!-- <option value="importdepends">Import dependencies from downloads</option> -->
|
|
|
|
<!-- <option value="modprovides">Set provides to mod name</option> -->
|
|
|
|
<!-- <option value="vcsrelease">Create VCS releases</option> -->
|
2018-05-15 16:00:12 +02:00
|
|
|
</select>
|
2018-05-25 19:28:24 +02:00
|
|
|
<input type="submit" value="Perform" />
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2018-12-22 14:14:08 +01:00
|
|
|
<div class="card my-4">
|
|
|
|
<h2 class="card-header">Restore Package</h2>
|
2018-05-25 19:28:24 +02:00
|
|
|
|
2018-12-22 14:14:08 +01:00
|
|
|
<form method="post" action="" class="card-body">
|
2018-05-25 19:28:24 +02:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
<input type="hidden" name="action" value="restore" />
|
|
|
|
<select name="package">
|
|
|
|
{% 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" />
|
2018-05-15 16:00:12 +02:00
|
|
|
</form>
|
|
|
|
</div>
|
2018-05-13 16:28:27 +02:00
|
|
|
{% endblock %}
|