diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-06-03 19:24:57 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-06-03 19:27:56 +0100 |
| commit | aad4fd2a705009f6c66834aa2834298f1557d989 (patch) | |
| tree | a798e32045d2145d15c9cbd2a19e6eab05a8dc70 /app/templates/packages/view.html | |
| parent | d2bda0fded03e46d7c69a411ae3cb5b59597d100 (diff) | |
| download | cheatdb-1.5.0.tar.xz | |
Add list of similar packages in details pagev1.5.0
Diffstat (limited to 'app/templates/packages/view.html')
| -rw-r--r-- | app/templates/packages/view.html | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/app/templates/packages/view.html b/app/templates/packages/view.html index 6ed5bbe..56cfd62 100644 --- a/app/templates/packages/view.html +++ b/app/templates/packages/view.html @@ -258,4 +258,27 @@ {% endfor %} </ul> {% endif %} + + {% if similar_topics %} + <h3>Similar Forum Topics</h3> + {% if not package.approved and package.type == package.type.MOD %} + <div class="box box_grey alert alert-warning"> + Please make sure that this package has the right to + the name '{{ package.name }}'. + See the + <a href="/policy_and_guidance/">Inclusion Policy</a> + for more info. + </div> + {% endif %} + <ul> + {% for t in similar_topics %} + <li> + [{{ t.getType().value }}] + <a href="https://forum.minetest.net/viewtopic.php?t={{ t.topic_id }}"> + {{ t.title }} by {{ t.author.display_name }} + </a> + </li> + {% endfor %} + </ul> + {% endif %} {% endblock %} |
