From c065519cca7cb6b2b13e606fd9dcc55afbc6d1d1 Mon Sep 17 00:00:00 2001 From: rubenwardy Date: Tue, 22 Dec 2020 12:50:59 +0000 Subject: [PATCH] Add threads to navbar --- app/blueprints/threads/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/blueprints/threads/__init__.py b/app/blueprints/threads/__init__.py index 8cfa14a..16242b3 100644 --- a/app/blueprints/threads/__init__.py +++ b/app/blueprints/threads/__init__.py @@ -13,13 +13,12 @@ # # You should have received a copy of the GNU General Public License # along with this program. If not, see . - - from flask import * bp = Blueprint("threads", __name__) from flask_login import current_user, login_required +from app import menu from app.models import * from app.utils import addNotification, isYes, addAuditLog from flask_wtf import FlaskForm @@ -27,7 +26,7 @@ from wtforms import * from wtforms.validators import * from app.utils import get_int_or_abort - +@menu.register_menu(bp, ".threads", "Threads", order=20) @bp.route("/threads/") def list_all(): query = Thread.query