mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-09 14:37:36 +01:00
Add approval state labels to screenshots and package tiles
This commit is contained in:
parent
8c44b08682
commit
f1597622ea
@ -27,6 +27,13 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.badge-tr {
|
||||||
|
position: absolute;
|
||||||
|
top: 5px;
|
||||||
|
right: 5px;
|
||||||
|
color: #ccc !important;;
|
||||||
|
}
|
||||||
|
|
||||||
.screenshot-add {
|
.screenshot-add {
|
||||||
display: block !important;
|
display: block !important;
|
||||||
width: 200px;
|
width: 200px;
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<title>{% block title %}title{% endblock %} - {{ config.USER_APP_NAME }}</title>
|
<title>{% block title %}title{% endblock %} - {{ config.USER_APP_NAME }}</title>
|
||||||
<link rel="stylesheet" type="text/css" href="/static/libs/bootstrap.min.css">
|
<link rel="stylesheet" type="text/css" href="/static/libs/bootstrap.min.css">
|
||||||
<link rel="stylesheet" type="text/css" href="/static/custom.css?v=27">
|
<link rel="stylesheet" type="text/css" href="/static/custom.css?v=28">
|
||||||
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="ContentDB" />
|
<link rel="search" type="application/opensearchdescription+xml" href="/static/opensearch.xml" title="ContentDB" />
|
||||||
<link rel="shortcut icon" href="/favicon-16.png" sizes="16x16">
|
<link rel="shortcut icon" href="/favicon-16.png" sizes="16x16">
|
||||||
<link rel="icon" href="/favicon-128.png" sizes="128x128">
|
<link rel="icon" href="/favicon-128.png" sizes="128x128">
|
||||||
|
@ -9,6 +9,11 @@
|
|||||||
{% if show_author %}<br />
|
{% if show_author %}<br />
|
||||||
<small>{{ package.author.display_name }}</small>
|
<small>{{ package.author.display_name }}</small>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if not package.approved %}
|
||||||
|
<span class="badge ml-1 {% if package.state == package.state.CHANGES_NEEDED %}bg-danger{% else %}bg-warning{% endif %}">
|
||||||
|
{{ package.state.value }}
|
||||||
|
</span>
|
||||||
|
{% endif %}
|
||||||
</h3>
|
</h3>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
@ -30,9 +30,14 @@
|
|||||||
<img class="img-fluid" style="max-height: 64px;"
|
<img class="img-fluid" style="max-height: 64px;"
|
||||||
src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
|
src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
|
||||||
</div>
|
</div>
|
||||||
<span class="col">
|
<div class="col">
|
||||||
{{ ss.title }}
|
{{ ss.title }}
|
||||||
</span>
|
{% if not ss.approved %}
|
||||||
|
<div class="text-muted">
|
||||||
|
Awaiting review
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
<form action="{{ ss.getDeleteURL() }}" method="POST" class="col-auto text-right" role="form">
|
<form action="{{ ss.getDeleteURL() }}" method="POST" class="col-auto text-right" role="form">
|
||||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
|
||||||
<a class="btn btn-sm btn-primary" href="{{ ss.getEditURL() }}">
|
<a class="btn btn-sm btn-primary" href="{{ ss.getEditURL() }}">
|
||||||
|
@ -219,8 +219,9 @@
|
|||||||
{% for ss in screenshots %}
|
{% for ss in screenshots %}
|
||||||
{% if ss.approved or package.checkPerm(current_user, "ADD_SCREENSHOTS") %}
|
{% if ss.approved or package.checkPerm(current_user, "ADD_SCREENSHOTS") %}
|
||||||
<li>
|
<li>
|
||||||
<a href="{{ ss.url }}">
|
<a href="{{ ss.url }}" class="position-relative">
|
||||||
<img src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
|
<img src="{{ ss.getThumbnailURL() }}" alt="{{ ss.title }}" />
|
||||||
|
<span class="badge bg-dark badge-tr">{{ _("Awaiting review") }}</span>
|
||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user