feat: Add menu entry for cheater list
This commit is contained in:
12
__init__.py
12
__init__.py
@@ -1,13 +1,11 @@
|
||||
import os
|
||||
|
||||
from flask import render_template, Blueprint
|
||||
from flask import request
|
||||
|
||||
from .models import CheaterTeams
|
||||
|
||||
from CTFd.models import db
|
||||
from CTFd.plugins.migrations import upgrade
|
||||
from CTFd.utils.decorators import admins_only
|
||||
from CTFd.models import db
|
||||
from flask import Blueprint, render_template, request
|
||||
|
||||
from .models import CheaterTeams
|
||||
|
||||
PLUGIN_PATH = os.path.dirname(__file__)
|
||||
|
||||
@@ -34,4 +32,6 @@ def load(app):
|
||||
app.db.create_all()
|
||||
upgrade(plugin_name="cheaters")
|
||||
|
||||
register_admin_plugin_menu_bar(title="Cheaters", route="/admin/cheaters")
|
||||
|
||||
app.register_blueprint(bp)
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block stylesheets %}
|
||||
{% endblock %}
|
||||
{% extends "admin/base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<div class="jumbotron">
|
||||
|
||||
Reference in New Issue
Block a user