contentdb/app/templates/metapackages/view.html

38 lines
1012 B
HTML
Raw Normal View History

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>
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 %}
{{ render_pkggrid(mpackage.packages.filter_by(state="APPROVED").all()) }}
{% 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>
<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) }}
</a>
2022-01-08 00:27:00 +01:00
{% if t.wip %}[{{ _("WIP") }}]{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
2022-01-08 00:27:00 +01:00
<h2>{{ _("Required By") }}</h2>
{{ render_pkggrid(dependers) }}
2022-01-08 00:27:00 +01:00
<h2>{{ _("Optionally Used By") }}</h2>
{{ render_pkggrid(optional_dependers) }}
2018-05-27 17:51:46 +02:00
{% endblock %}