aboutsummaryrefslogtreecommitdiff
path: root/app/templates/admin/list.html
blob: 307821f5740ccf95e7d39b6626688537fd5c147c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{% extends "base.html" %}

{% block title %}
Admin
{% endblock %}

{% block content %}
	<ul>
		<li><a href="db/">Database</a></li>
		<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('switch_user_page') }}">Sign in as another user</a></li>
	</ul>

	<div class="box box_grey">
		<h2>Do action</h2>

		<form method="post" action="" class="box-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="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="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" />
		</form>
	</div>
{% endblock %}