mirror of
https://github.com/minetest/contentdb.git
synced 2024-11-10 09:33:44 +01:00
27 lines
752 B
HTML
27 lines
752 B
HTML
{% extends "base.html" %}
|
|
|
|
{% block title %}
|
|
Add a screenshot | {{ package.title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<a href="{{ screenshot.url }}">
|
|
<img src="{{ screenshot.getThumbnailURL() }}" alt="{{ screenshot.title }}" />
|
|
</a>
|
|
|
|
{% from "macros/forms.html" import render_field, render_submit_field, render_checkbox_field %}
|
|
<form method="POST" action="" enctype="multipart/form-data">
|
|
{{ form.hidden_tag() }}
|
|
|
|
{{ render_field(form.title) }}
|
|
{{ render_checkbox_field(form.delete) }}
|
|
|
|
{% if package.checkPerm(current_user, "APPROVE_SCREENSHOT") %}
|
|
{{ render_checkbox_field(form.approved) }}
|
|
{% else %}
|
|
<p>Approved: {{ screenshot.approved }}</p>
|
|
{% endif %}
|
|
{{ render_submit_field(form.submit) }}
|
|
</form>
|
|
{% endblock %}
|