mirror of
https://github.com/minetest/contentdb.git
synced 2025-01-10 15:07:35 +01:00
Add progress bar to topics page
This commit is contained in:
parent
c79c970171
commit
49d5a123e5
@ -18,9 +18,14 @@ Topics to be Added
|
|||||||
<h1>Topics to be Added</h1>
|
<h1>Topics to be Added</h1>
|
||||||
|
|
||||||
<p>
|
<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.
|
{{ topic_count }} remaining.
|
||||||
</p>
|
</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">
|
<form method="GET" action="{{ url_for('todo_topics_page') }}" class="my-4">
|
||||||
<input class="" name="q" type="text" placeholder="Search topics" value="{{ query or ''}}">
|
<input class="" name="q" type="text" placeholder="Search topics" value="{{ query or ''}}">
|
||||||
|
Loading…
Reference in New Issue
Block a user