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

View File

@@ -117,7 +117,7 @@ def tags():
tags = Tag.query.order_by(db.asc(Tag.title)).all() 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/") @bp.route("/user/tags/")

View File

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

View File

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