mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-24 15:02:25 +01:00
49 lines
1.7 KiB
HTML
49 lines
1.7 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Admin Tools
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<ul>
|
|
<li><a href="{{ url_for('user_list_page') }}">User list</a></li>
|
|
<li><a href="{{ url_for('tag_list_page') }}">Tag Editor</a></li>
|
|
<li><a href="{{ url_for('license_list_page') }}">License Editor</a></li>
|
|
<li><a href="{{ url_for('version_list_page') }}">Version Editor</a></li>
|
|
<li><a href="{{ url_for('switch_user_page') }}">Sign in as another user</a></li>
|
|
</ul>
|
|
|
|
<div class="card my-4">
|
|
<h2 class="card-header">Do action</h2>
|
|
|
|
<form method="post" action="" class="card-body">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
<select name="action">
|
|
<option value="importmodlist" selected>Import forum topics</option>
|
|
<option value="recalcscores">Recalculate package scores</option>
|
|
<option value="checkusers">Check forum users</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> -->
|
|
</select>
|
|
<input type="submit" value="Perform" />
|
|
</form>
|
|
</div>
|
|
|
|
<div class="card my-4">
|
|
<h2 class="card-header">Restore Package</h2>
|
|
|
|
<form method="post" action="" class="card-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" />
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|