contentdb/app/templates/metapackages/view.html

33 lines
820 B
HTML
Raw Normal View History

2018-05-27 17:51:46 +02:00
{% extends "base.html" %}
{% block title %}
{{ mpackage.name }} - Meta Packages
2018-05-27 17:51:46 +02:00
{% endblock %}
{% block content %}
<h1>Meta Package "{{ mpackage.name }}"</h1>
<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(approved=True, soft_deleted=False).all()) }}
{% if similar_topics %}
<p>Unforuntately, this isn't on ContentDB yet! Here's some forum topics:</p>
<ul>
{% for t in similar_topics %}
<li>
[{{ t.type.value }}]
<a href="https://forum.minetest.net/viewtopic.php?t={{ t.topic_id }}">
{{ t.title }} by {{ t.author.display_name }}
</a>
{% if t.wip %}[WIP]{% endif %}
</li>
{% endfor %}
</ul>
{% endif %}
<h2>Required / Used by</h2>
{{ render_pkggrid(dependers) }}
2018-05-27 17:51:46 +02:00
{% endblock %}