Add All Package Tags to todo tabs

This commit is contained in:
rubenwardy 2021-01-30 15:53:13 +00:00
parent 324815d58d
commit 82fe0e7bbf
3 changed files with 9 additions and 4 deletions

@ -117,7 +117,7 @@ def tags():
tags = Tag.query.order_by(db.asc(Tag.title)).all()
return render_template("todo/tags.html", packages=query.all(), tags=tags)
return render_template("todo/tags.html", current_tab="tags", packages=query.all(), tags=tags)
@bp.route("/user/tags/")

@ -1,11 +1,10 @@
{% extends "base.html" %}
{% extends "todo/todo_base.html" %}
{% block title %}
Tags
{{ _("All Package Tags") }}
{% endblock %}
{% block content %}
<table class="table">
<tr>
<th>Package</th>

@ -23,6 +23,12 @@
{{ _("All Outdated Packages") }}
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if current_tab == "tags" %}active{% endif %}"
href="{{ url_for('todo.tags') }}">
{{ _("All Package Tags") }}
</a>
</li>
<li class="nav-item">
<a class="nav-link {% if current_tab == "topics" %}active{% endif %}"
href="{{ url_for('todo.topics') }}">