Убрано по причине "JSON"
This commit is contained in:
@@ -13,9 +13,7 @@ app.register_blueprint(auth_bp, url_prefix='/auth')
|
|||||||
|
|
||||||
@app.route('/')
|
@app.route('/')
|
||||||
def index():
|
def index():
|
||||||
with open(path.join(path.dirname(__file__), 'menu.json')) as f:
|
return render_template('main_menu.html', ses=session)
|
||||||
urls = json.load(f)
|
|
||||||
return render_template('main_menu.html', menu=urls, ses=session)
|
|
||||||
|
|
||||||
@app.route('/logout')
|
@app.route('/logout')
|
||||||
@check_auth
|
@check_auth
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
[
|
|
||||||
{"name": "Меню запросов", "url": "requests_bp.sklad_zapros"}
|
|
||||||
]
|
|
||||||
@@ -12,9 +12,7 @@
|
|||||||
{% else %}
|
{% else %}
|
||||||
<a href="{{ url_for('auth_bp.auth') }}">Авторизация</a>
|
<a href="{{ url_for('auth_bp.auth') }}">Авторизация</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for point in menu %}
|
<a href="{{ url_for('requests_bp.requests') }}">Запросы</a>
|
||||||
<a href="{{ url_for(point['url']) }}">{{ point['name'] }}</a>
|
|
||||||
{% endfor %}
|
|
||||||
</nav>
|
</nav>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user