contentdb/app/templates/packages/similar.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2021-07-29 20:34:47 +02:00
{% extends "base.html" %}
{% block title %}
2022-01-08 00:27:00 +01:00
{{ _("Modname Uniqueness") }}
2021-07-29 20:34:47 +02:00
{% endblock %}
{% block content %}
2023-06-18 23:00:24 +02:00
<h1><a href="{{ package.get_url('packages.view') }}">{{ package.title }}</a></h1>
2021-07-29 20:34:47 +02:00
<h2>{{ self.title() }}</h2>
{% if packages_modnames %}
<h3 id="packages-sharing-provided-mods">{{ _("Packages sharing provided mods") }}</h3>
2021-07-29 20:34:47 +02:00
<p class="text-muted">
2022-01-08 02:49:13 +01:00
{{ _("This package contains modnames that are present in the following packages:") }}
2021-07-29 20:34:47 +02:00
</p>
2022-09-01 23:45:53 +02:00
{% for modname, packages in packages_modnames.items() %}
<h4 id="{{ modname.name }}">{{ modname.name }}</h4>
2021-07-29 20:34:47 +02:00
<ul>
{% for pkg in packages %}
<li>
<a href="{{ pkg.get_url('packages.view') }}">
2021-07-29 20:34:47 +02:00
{{ _("%(title)s by %(author)s", title=pkg.title, author=pkg.author.display_name) }}
</a>
2022-01-14 19:25:28 +01:00
[{{ pkg.type.text }}]
2021-07-29 20:34:47 +02:00
</li>
{% endfor %}
</ul>
{% endfor %}
{% endif %}
{% if similar_topics %}
<h3 id="similar-forum-topics">{{ _("Similar Forum Topics") }}</h3>
2021-07-29 20:34:47 +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) }}
2021-07-29 20:34:47 +02:00
</a>
2022-01-08 00:27:00 +01:00
{% if t.wip %}[{{ _("WIP") }}]{% endif %}
2021-07-29 20:34:47 +02:00
</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}