mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-23 10:42:27 +01:00
Move mods above games in metapackage page
This commit is contained in:
app/templates
@ -11,12 +11,12 @@
|
|||||||
|
|
||||||
<h2>{{ _("Provided By") }}</h2>
|
<h2>{{ _("Provided By") }}</h2>
|
||||||
|
|
||||||
<h3>{{ _("Games") }}</h3>
|
|
||||||
{{ render_pkggrid(mpackage.packages.filter_by(type="GAME", state="APPROVED").all()) }}
|
|
||||||
|
|
||||||
<h3>{{ _("Mods") }}</h3>
|
<h3>{{ _("Mods") }}</h3>
|
||||||
{{ render_pkggrid(mpackage.packages.filter_by(type="MOD", state="APPROVED").all()) }}
|
{{ render_pkggrid(mpackage.packages.filter_by(type="MOD", state="APPROVED").all()) }}
|
||||||
|
|
||||||
|
<h3>{{ _("Games") }}</h3>
|
||||||
|
{{ render_pkggrid(mpackage.packages.filter_by(type="GAME", state="APPROVED").all()) }}
|
||||||
|
|
||||||
{% if similar_topics %}
|
{% if similar_topics %}
|
||||||
<h3>{{ _("Forum Topics") }}</h3>
|
<h3>{{ _("Forum Topics") }}</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
19
app/templates/packages/user_screenshot_new.html
Normal file
19
app/templates/packages/user_screenshot_new.html
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
{% block title %}
|
||||||
|
{{ _("Add a screenshot") }} - {{ package.title }}
|
||||||
|
{% endblock %}
|
||||||
|
|
||||||
|
{% block content %}
|
||||||
|
<h1>{{ _("Add a screenshot") }}</h1>
|
||||||
|
|
||||||
|
{% from "macros/forms.html" import render_field, render_submit_field %}
|
||||||
|
<form method="POST" action="" enctype="multipart/form-data">
|
||||||
|
{{ form.hidden_tag() }}
|
||||||
|
|
||||||
|
{{ render_field(form.title) }}
|
||||||
|
{{ render_field(form.file_upload, fieldclass="form-control-file", accept="image/png,image/jpeg") }}
|
||||||
|
{{ render_checkbox_field
|
||||||
|
{{ render_submit_field(form.submit) }}
|
||||||
|
</form>
|
||||||
|
{% endblock %}
|
Reference in New Issue
Block a user