diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-06-05 23:45:15 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-06-05 23:45:15 +0100 |
| commit | c9542427b41d9223508a64225a4e6e64671b1c22 (patch) | |
| tree | 7962aa5468bd5665e645a953af23b020b6f9e6da /app/templates/users | |
| parent | 8601c5e075ecd35d4c9f155e8477ad719b41fe3a (diff) | |
| download | cheatdb-c9542427b41d9223508a64225a4e6e64671b1c22.tar.xz | |
Add create links to topic table
Diffstat (limited to 'app/templates/users')
| -rw-r--r-- | app/templates/users/user_profile_page.html | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/app/templates/users/user_profile_page.html b/app/templates/users/user_profile_page.html index 5c5113b..636a610 100644 --- a/app/templates/users/user_profile_page.html +++ b/app/templates/users/user_profile_page.html @@ -108,22 +108,10 @@ Powered by Krock's Mod Search. </p> - <table> - <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> + + + {% from "macros/topictable.html" import render_topictable %} + {{ render_topictable(topics_to_add, show_author=False) }} </div> </div> {% endif %} |
