]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/templates/users/user_profile_page.html
Add topics todo list based on forum parser
[cheatdb.git] / app / templates / users / user_profile_page.html
index 46312566f254b33e8ed15ee3511ac068478f8592..7181fc2c448a6480ea31ecbf08ea41e82031ca48 100644 (file)
 {% from "macros/packagegridtile.html" import render_pkggrid %}
 {{ render_pkggrid(packages, show_author=False) }}
 
+{% if topics_to_add %}
+       <div class="box box_grey">
+               <h2>Topics to Add</h2>
+
+               <table class="box-body">
+                       <tr>
+                               <th>Id</th>
+                               <th>Title</th>
+                               <th>Name</th>
+                               <th>Link</th>
+                       </tr>
+                       {% for topic in topics_to_add %}
+                               <tr>
+                                       <td>{{ topic.topic_id }}</td>
+                                       <td>[{{ topic.getType().value }}] <a href="https://forum.minetest.net/viewtopic.php?t={{ topic.topic_id}}">{{ topic.title }}</a></td>
+                                       <td>{{ topic.name or ""}}</td>
+                                       <td><a href="{{ topic.link }}">{{ topic.link | domain }}</a></td>
+                               </tr>
+                       {% endfor %}
+               </table>
+       </div>
+{% endif %}
+
 {% endblock %}