mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 01:23:48 +01:00
Move screenshots to top of approval queue page
This commit is contained in:
parent
ff93be7a89
commit
d24f024cca
@ -6,6 +6,38 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<h2 class="mb-4">Approval Queue</h2>
|
<h2 class="mb-4">Approval Queue</h2>
|
||||||
|
{% if canApproveScn and screenshots %}
|
||||||
|
<div class="card my-4">
|
||||||
|
<h3 class="card-header">Screenshots
|
||||||
|
<form class="float-right" method="post" action="{{ url_for('todo.view') }}">
|
||||||
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||||
|
<input type="hidden" name="action" value="screenshots_approve_all" />
|
||||||
|
<input class="btn btn-sm btn-primary" type="submit" value="Approve All" />
|
||||||
|
</form>
|
||||||
|
</h3>
|
||||||
|
<ul class="card-body d-flex p-0 flex-row flex-wrap justify-content-start align-content-start p-4">
|
||||||
|
{% for s in screenshots %}
|
||||||
|
<li class="packagetile flex-fill"><a href="{{ s.getEditURL() }}"
|
||||||
|
style="background-image: url({{ s.getThumbnailURL(3) or '/static/placeholder.png' }});">
|
||||||
|
<div class="packagegridscrub"></div>
|
||||||
|
<div class="packagegridinfo">
|
||||||
|
<h3>
|
||||||
|
{{ s.title }}
|
||||||
|
<br />
|
||||||
|
<small>{{ s.package.title }} by {{ s.package.author.display_name }}</small>
|
||||||
|
</h3>
|
||||||
|
<p></p>
|
||||||
|
</div>
|
||||||
|
</a></li>
|
||||||
|
{% else %}
|
||||||
|
<li><i>No screenshots need reviewing.</i></li>
|
||||||
|
{% endfor %}
|
||||||
|
{% for i in range(4) %}
|
||||||
|
<li class="packagetile flex-fill"></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="row">
|
<div class="row">
|
||||||
{% if canApproveNew and (packages or wip_packages) %}
|
{% if canApproveNew and (packages or wip_packages) %}
|
||||||
@ -75,39 +107,6 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if canApproveScn and screenshots %}
|
|
||||||
<div class="card my-4">
|
|
||||||
<h3 class="card-header">Screenshots
|
|
||||||
<form class="float-right" method="post" action="{{ url_for('todo.view') }}">
|
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
|
||||||
<input type="hidden" name="action" value="screenshots_approve_all" />
|
|
||||||
<input class="btn btn-sm btn-primary" type="submit" value="Approve All" />
|
|
||||||
</form>
|
|
||||||
</h3>
|
|
||||||
<ul class="card-body d-flex p-0 flex-row flex-wrap justify-content-start align-content-start p-4">
|
|
||||||
{% for s in screenshots %}
|
|
||||||
<li class="packagetile flex-fill"><a href="{{ s.getEditURL() }}"
|
|
||||||
style="background-image: url({{ s.getThumbnailURL(3) or '/static/placeholder.png' }});">
|
|
||||||
<div class="packagegridscrub"></div>
|
|
||||||
<div class="packagegridinfo">
|
|
||||||
<h3>
|
|
||||||
{{ s.title }}
|
|
||||||
<br />
|
|
||||||
<small>{{ s.package.title }} by {{ s.package.author.display_name }}</small>
|
|
||||||
</h3>
|
|
||||||
<p></p>
|
|
||||||
</div>
|
|
||||||
</a></li>
|
|
||||||
{% else %}
|
|
||||||
<li><i>No screenshots need reviewing.</i></li>
|
|
||||||
{% endfor %}
|
|
||||||
{% for i in range(4) %}
|
|
||||||
<li class="packagetile flex-fill"></li>
|
|
||||||
{% endfor %}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
{% if not (packages or screenshots or releases) %}
|
{% if not (packages or screenshots or releases) %}
|
||||||
<p>
|
<p>
|
||||||
<i>All done!</i>
|
<i>All done!</i>
|
||||||
|
Loading…
Reference in New Issue
Block a user