aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2018-12-24 00:27:55 +0000
committerrubenwardy <rw@rubenwardy.com>2018-12-24 00:27:55 +0000
commit49d5a123e505ddd9a1455e6bff6daf499b0e12bb (patch)
treee9f08891a1600dbb0b9b9a8879f2dce6429bb8e5
parentc79c970171ecc2c96d6b670068175ffbe3e6682a (diff)
downloadcheatdb-49d5a123e505ddd9a1455e6bff6daf499b0e12bb.tar.xz
Add progress bar to topics page
-rw-r--r--app/templates/todo/topics.html7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/templates/todo/topics.html b/app/templates/todo/topics.html
index d2fcd28..bec0f42 100644
--- a/app/templates/todo/topics.html
+++ b/app/templates/todo/topics.html
@@ -18,9 +18,14 @@ Topics to be Added
<h1>Topics to be Added</h1>
<p>
- {{ total - (topic_count) }} / {{ total }} topics have been added as packages to CDB.
+ {{ total - topic_count }} / {{ total }} topics have been added as packages to CDB.
{{ topic_count }} remaining.
</p>
+ <div class="progress">
+ {% set perc = 100 * (total - topic_count) / total %}
+ <div class="progress-bar bg-success" role="progressbar"
+ style="width: {{ perc }}%" aria-valuenow="{{ perc }}" aria-valuemin="0" aria-valuemax="100"></div>
+ </div>
<form method="GET" action="{{ url_for('todo_topics_page') }}" class="my-4">
<input class="" name="q" type="text" placeholder="Search topics" value="{{ query or ''}}">