diff --git a/app/templates/todo/list.html b/app/templates/todo/list.html index 2f09cb9..f9f90e0 100644 --- a/app/templates/todo/list.html +++ b/app/templates/todo/list.html @@ -101,17 +101,23 @@

Unadded Topic List

-

- {{ total_topics - topics_to_add }} / {{ total_topics }} packages have been been added to cdb, - based on cdb's forum parser. {{ topics_to_add }} remaining. -

+ {% if total_topics > 0 %} +

+ {{ total_topics - topics_to_add }} / {{ total_topics }} packages have been been added to cdb, + based on cdb's forum parser. {{ topics_to_add }} remaining. +

-
- {% set perc = 32 %} -
-
+
+ {% set perc = 100 * (total_topics - topics_to_add) / total_topics %} +
+
- View Unadded Topic List + View Unadded Topic List + {% else %} +

+ The forum topic crawler needs to run at least once for this section to work. +

+ {% endif %} {% endblock %} diff --git a/app/templates/todo/topics.html b/app/templates/todo/topics.html index 8afa3b0..e51f4ec 100644 --- a/app/templates/todo/topics.html +++ b/app/templates/todo/topics.html @@ -51,15 +51,21 @@ Topics to be Added

Topics to be Added

-

- {{ total - topic_count }} / {{ total }} topics have been added as packages to CDB. - {{ topic_count }} remaining. -

-
- {% set perc = 100 * (total - topic_count) / total %} -
-
+ {% if topic_count > 0 %} +

+ {{ total - topic_count }} / {{ total }} topics have been added as packages to CDB. + {{ topic_count }} remaining. +

+
+ {% set perc = 100 * (total - topic_count) / total %} +
+
+ {% else %} +

+ The forum topic crawler needs to run at least once for this section to work. +

+ {% endif %}