Add threads to navbar
This commit is contained in:
parent
df79159e2e
commit
c065519cca
|
@ -13,13 +13,12 @@
|
||||||
#
|
#
|
||||||
# You should have received a copy of the GNU General Public License
|
# You should have received a copy of the GNU General Public License
|
||||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
|
||||||
from flask import *
|
from flask import *
|
||||||
|
|
||||||
bp = Blueprint("threads", __name__)
|
bp = Blueprint("threads", __name__)
|
||||||
|
|
||||||
from flask_login import current_user, login_required
|
from flask_login import current_user, login_required
|
||||||
|
from app import menu
|
||||||
from app.models import *
|
from app.models import *
|
||||||
from app.utils import addNotification, isYes, addAuditLog
|
from app.utils import addNotification, isYes, addAuditLog
|
||||||
from flask_wtf import FlaskForm
|
from flask_wtf import FlaskForm
|
||||||
|
@ -27,7 +26,7 @@ from wtforms import *
|
||||||
from wtforms.validators import *
|
from wtforms.validators import *
|
||||||
from app.utils import get_int_or_abort
|
from app.utils import get_int_or_abort
|
||||||
|
|
||||||
|
@menu.register_menu(bp, ".threads", "Threads", order=20)
|
||||||
@bp.route("/threads/")
|
@bp.route("/threads/")
|
||||||
def list_all():
|
def list_all():
|
||||||
query = Thread.query
|
query = Thread.query
|
||||||
|
|
Loading…
Reference in New Issue