2018-05-27 17:51:46 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ mpackage.name }} - {{ _("Meta Packages") }}
|
2018-05-27 17:51:46 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<h1>{{ _("Meta Package \"%(name)s\"", name=mpackage.name) }}</h1>
|
2020-08-18 17:29:51 +02:00
|
|
|
|
2022-01-08 00:27:00 +01:00
|
|
|
<h2>{{ _("Provided By") }}</h2>
|
2018-05-27 17:51:46 +02:00
|
|
|
|
|
|
|
{% from "macros/packagegridtile.html" import render_pkggrid %}
|
2020-09-16 18:51:03 +02:00
|
|
|
{{ render_pkggrid(mpackage.packages.filter_by(state="APPROVED").all()) }}
|
2020-08-18 17:29:51 +02:00
|
|
|
|
2020-08-18 17:42:33 +02:00
|
|
|
{% if similar_topics %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<p>
|
|
|
|
{{ _("Unfortunately, this isn't on ContentDB yet! Here's some forum topic(s):") }}
|
|
|
|
</p>
|
2020-08-18 17:42:33 +02:00
|
|
|
<ul>
|
|
|
|
{% for t in similar_topics %}
|
|
|
|
<li>
|
|
|
|
[{{ t.type.value }}]
|
|
|
|
<a href="https://forum.minetest.net/viewtopic.php?t={{ t.topic_id }}">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("%(title)s by %(display_name)s", title=t.title, display_name=t.author.display_name) }}
|
2020-08-18 17:42:33 +02:00
|
|
|
</a>
|
2022-01-08 00:27:00 +01:00
|
|
|
{% if t.wip %}[{{ _("WIP") }}]{% endif %}
|
2020-08-18 17:42:33 +02:00
|
|
|
</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2022-01-08 00:27:00 +01:00
|
|
|
<h2>{{ _("Required By") }}</h2>
|
2020-08-18 17:29:51 +02:00
|
|
|
{{ render_pkggrid(dependers) }}
|
2020-08-18 18:13:37 +02:00
|
|
|
|
2022-01-08 00:27:00 +01:00
|
|
|
<h2>{{ _("Optionally Used By") }}</h2>
|
2020-08-18 18:13:37 +02:00
|
|
|
{{ render_pkggrid(optional_dependers) }}
|
2018-05-27 17:51:46 +02:00
|
|
|
{% endblock %}
|