aboutsummaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorrubenwardy <rw@rubenwardy.com>2020-07-15 00:21:20 +0100
committerrubenwardy <rw@rubenwardy.com>2020-07-15 00:21:20 +0100
commit15bbc35e656421d415cd6cba8accb83a77e7d84f (patch)
tree2b5f36ad23e9db1489830845359a1063bde9ff05 /app/templates
parentc9e4638b348a5d9004376ed90e72fe8bb9df40e3 (diff)
downloadcheatdb-15bbc35e656421d415cd6cba8accb83a77e7d84f.tar.xz
Use query builder in tag list, add link to todo page
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/todo/list.html17
-rw-r--r--app/templates/todo/tags.html4
2 files changed, 18 insertions, 3 deletions
diff --git a/app/templates/todo/list.html b/app/templates/todo/list.html
index ef5025e..4d0b75c 100644
--- a/app/templates/todo/list.html
+++ b/app/templates/todo/list.html
@@ -99,6 +99,22 @@
</p>
{% endif %}
+
+ <h2 class="mt-5">Tag Packages</h2>
+
+ <p>
+ {{ total_to_tag }} / {{ total_packages }} packages don't have any tags.
+ </p>
+
+ <div class="progress my-4">
+ {% set perc = 100 * (total_packages - total_to_tag) / total_packages %}
+ <div class="progress-bar bg-success" role="progressbar"
+ style="width: {{ perc }}%" aria-valuenow="{{ perc }}" aria-valuemin="0" aria-valuemax="100"></div>
+ </div>
+
+ <a class="btn btn-primary" href="{{ url_for('todo.tags') }}">View Tags</a>
+
+
<h2 class="mt-5">Unadded Topic List</h2>
{% if total_topics > 0 %}
@@ -119,5 +135,4 @@
The forum topic crawler needs to run at least once for this section to work.
</p>
{% endif %}
-
{% endblock %}
diff --git a/app/templates/todo/tags.html b/app/templates/todo/tags.html
index e7675f8..04f270a 100644
--- a/app/templates/todo/tags.html
+++ b/app/templates/todo/tags.html
@@ -36,9 +36,9 @@
{% for tag in package.tags %}
<span class="badge badge-primary mr-1">{{ tag.title }}</span>
{% endfor %}
- <a class="badge badge-secondary add-btn px-2" href="#">
+ <!-- <a class="badge badge-secondary add-btn px-2" href="#">
<i class="fas fa-plus"></i>
- </a>
+ </a> -->
</td>
</tr>
{% endfor %}