2018-05-13 16:28:27 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2018-07-30 01:16:03 +02:00
|
|
|
Admin
|
2018-05-13 16:28:27 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<ul>
|
2018-07-30 01:16:03 +02:00
|
|
|
<li><a href="db/">Database</a></li>
|
2018-05-13 17:56:18 +02:00
|
|
|
<li><a href="{{ url_for('user_list_page') }}">User list</a></li>
|
2018-05-27 18:11:02 +02:00
|
|
|
<li><a href="{{ url_for('tag_list_page') }}">Tag Editor</a></li>
|
2018-07-28 18:26:28 +02:00
|
|
|
<li><a href="{{ url_for('license_list_page') }}">License Editor</a></li>
|
2018-05-13 17:56:18 +02:00
|
|
|
<li><a href="{{ url_for('switch_user_page') }}">Sign in as another user</a></li>
|
2018-05-13 16:28:27 +02:00
|
|
|
</ul>
|
2018-05-15 16:00:12 +02:00
|
|
|
|
|
|
|
<div class="box box_grey">
|
|
|
|
<h2>Do action</h2>
|
|
|
|
|
2018-05-18 22:35:54 +02:00
|
|
|
<form method="post" action="" class="box-body">
|
2018-05-15 16:00:12 +02:00
|
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
|
|
<select name="action">
|
2018-07-28 18:26:28 +02:00
|
|
|
<option value="importmodlist" selected>Import forum topics</option>
|
|
|
|
<option value="recalcscores">Recalculate package scores</option>
|
|
|
|
<!-- <option value="importscreenshots">Import screenshots from VCS</option> -->
|
|
|
|
<!-- <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>
|
|
|
|
|
|
|
|
<div class="box box_grey">
|
|
|
|
<h2>Restore Package</h2>
|
|
|
|
|
|
|
|
<form method="post" action="" class="box-body">
|
|
|
|
<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 %}
|