Add progress bar to topics page

This commit is contained in:
rubenwardy 2018-12-24 00:27:55 +00:00
parent c79c970171
commit 49d5a123e5

@ -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 ''}}">