diff options
| author | rubenwardy <rw@rubenwardy.com> | 2018-06-02 18:22:57 +0100 |
|---|---|---|
| committer | rubenwardy <rw@rubenwardy.com> | 2018-06-02 18:26:17 +0100 |
| commit | 70afb94d3b985e314ff1f922294875e43c56fefc (patch) | |
| tree | 6743df30af1b00f5ed457155bbca0724f639c97d /app/templates/todo | |
| parent | 8984adaa728c6c1c9bafb8c1ba5ea227bb17aa5b (diff) | |
| download | cheatdb-70afb94d3b985e314ff1f922294875e43c56fefc.tar.xz | |
Add topics todo list based on forum parser
Diffstat (limited to 'app/templates/todo')
| -rw-r--r-- | app/templates/todo/list.html | 62 | ||||
| -rw-r--r-- | app/templates/todo/topics.html | 34 |
2 files changed, 96 insertions, 0 deletions
diff --git a/app/templates/todo/list.html b/app/templates/todo/list.html new file mode 100644 index 0000000..20e8f4f --- /dev/null +++ b/app/templates/todo/list.html @@ -0,0 +1,62 @@ +{% extends "base.html" %} + +{% block title %} +{{ title }} +{% endblock %} + +{% block content %} + {% if canApproveNew %} + <h2>Packages Awaiting Approval</h2> + <ul> + {% for p in packages %} + <li><a href="{{ p.getDetailsURL() }}"> + {{ p.title }} by {{ p.author.display_name }} + </a></li> + {% else %} + <li><i>No packages need reviewing.</i></ul> + {% endfor %} + </ul> + {% endif %} + + {% if canApproveScn %} + <h2>Screenshots Awaiting Approval</h2> + <ul> + {% for s in screenshots %} + <li> + <a href="{{ s.getEditURL() }}">{{ s.title }}</a> + on + <a href="{{ s.package.getDetailsURL() }}"> + {{ s.package.title }} by {{ s.package.author.display_name }} + </a> + </li> + {% else %} + <li><i>No screenshots need reviewing.</i></ul> + {% endfor %} + </ul> + {% endif %} + + {% if canApproveRel %} + <h2>Releases Awaiting Approval</h2> + <ul> + {% for r in releases %} + <li> + <a href="{{ r.getEditURL() }}">{{ r.title }}</a> + on + <a href="{{ r.package.getDetailsURL() }}"> + {{ r.package.title }} by {{ r.package.author.display_name }} + </a> + </li> + {% else %} + <li><i>No releases need reviewing.</i></ul> + {% endfor %} + </ul> + {% endif %} + + <h2>Forum Topics without a Package</h2> + + <p> + There are + <a href="{{ url_for('todo_topics_page') }}">{{ topics_to_add }} packages</a> + to be added to cdb. + </p> +{% endblock %} diff --git a/app/templates/todo/topics.html b/app/templates/todo/topics.html new file mode 100644 index 0000000..77f32c0 --- /dev/null +++ b/app/templates/todo/topics.html @@ -0,0 +1,34 @@ +{% extends "base.html" %} + +{% block title %} +Topics to be Added +{% endblock %} + +{% block content %} + <h1>Topics to be Added</h1> + + <p> + {{ total - (topics | count) }} / {{ total }} packages have been added. + {{ topics | count }} remaining. + </p> + + <table> + <tr> + <th>Id</th> + <th>Title</th> + <th>Author</th> + <th>Name</th> + <th>Link</th> + </tr> + {% for topic in topics %} + <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><a href="{{ url_for('user_profile_page', username=topic.author.username) }}">{{ topic.author.display_name}}</a></td> + <td>{{ topic.name or ""}}</td> + <td><a href="{{ topic.link }}">{{ topic.link | domain }}</a></td> + + </tr> + {% endfor %} + </table> +{% endblock %} |
