From 70afb94d3b985e314ff1f922294875e43c56fefc Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Sat, 2 Jun 2018 18:22:57 +0100 Subject: Add topics todo list based on forum parser --- app/templates/todo/list.html | 62 ++++++++++++++++++++++++++++++++++++++++++ app/templates/todo/topics.html | 34 +++++++++++++++++++++++ 2 files changed, 96 insertions(+) create mode 100644 app/templates/todo/list.html create mode 100644 app/templates/todo/topics.html (limited to 'app/templates/todo') 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 %} +

Packages Awaiting Approval

+ + {% endfor %} + + {% endif %} + + {% if canApproveScn %} +

Screenshots Awaiting Approval

+ + {% endfor %} + + {% endif %} + + {% if canApproveRel %} +

Releases Awaiting Approval

+ + {% endfor %} + + {% endif %} + +

Forum Topics without a Package

+ +

+ There are + {{ topics_to_add }} packages + to be added to cdb. +

+{% 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 %} +

Topics to be Added

+ +

+ {{ total - (topics | count) }} / {{ total }} packages have been added. + {{ topics | count }} remaining. +

+ + + + + + + + + + {% for topic in topics %} + + + + + + + + + {% endfor %} +
IdTitleAuthorNameLink
{{ topic.topic_id }}[{{ topic.getType().value }}] {{ topic.title }}{{ topic.author.display_name}}{{ topic.name or ""}}{{ topic.link | domain }}
+{% endblock %} -- cgit v1.2.3