mirror of
https://github.com/minetest/contentdb.git
synced 2025-03-14 14:22:30 +01:00
Add threads to navbar
This commit is contained in:
@ -13,13 +13,12 @@
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
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
|
||||
|
Reference in New Issue
Block a user