Move settings and api-key page to menu

This commit is contained in:
Son NK 2019-12-29 10:56:27 +01:00
parent f509c9d9e9
commit b391fa4c91
4 changed files with 20 additions and 9 deletions

View File

@ -4,6 +4,8 @@
API Key
{% endblock %}
{% set active_page = "api_key" %}
{% block head %}
{% endblock %}

View File

@ -1,7 +1,9 @@
{% extends 'default.html' %}
{% set active_page = "setting" %}
{% block title %}
Setting
Settings
{% endblock %}
{% block default_content %}

View File

@ -42,14 +42,6 @@
</a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
<a class="dropdown-item" href="{{ url_for('dashboard.setting') }}">
<i class="dropdown-icon fe fe-settings"></i> Settings
</a>
<a class="dropdown-item" href="{{ url_for('dashboard.api_key') }}">
<i class="dropdown-icon fe fe-chrome"></i> API Key
</a>
<a class="dropdown-item" href="{{ url_for('dashboard.custom_domain') }}">
<i class="dropdown-icon fe fe-server"></i> Custom Domains
<span class="badge badge-success">Premium</span>

View File

@ -7,6 +7,21 @@
</a>
</li>
<li class="nav-item">
<a href="{{ url_for('dashboard.setting') }}"
class="nav-link {{ 'active' if active_page == 'setting' }}">
<i class="fe fe-settings"></i>
Settings
</a>
</li>
<li class="nav-item">
<a href="{{ url_for('dashboard.api_key') }}"
class="nav-link {{ 'active' if active_page == 'api_key' }}">
<i class="fe fe-chrome"></i> API Key
</a>
</li>
<!--
<li class="nav-item">
<a href="{{ url_for('discover.index') }}"