move the api key page back to menu

This commit is contained in:
Son NK 2021-05-05 18:51:15 +02:00
parent e5926978c8
commit 5317b8ab84
3 changed files with 18 additions and 26 deletions

View File

@ -12,26 +12,14 @@
{% block default_content %} {% block default_content %}
<div class="row"> <div class="row">
<div class="col"> <div class="col">
<h1 class="h3"> API Key <h1 class="h3"> API Keys </h1>
<a class="ml-3 text-info" style="font-size: 12px" data-toggle="collapse" href="#howtouse" role="button" <div class="small-text">
aria-expanded="false" aria-controls="collapseExample"> API keys are used by the SimpleLogin browser extensions or mobile apps.
What is this? <i class="fe fe-chevrons-down"></i> </div>
</a>
</h1>
<div class="alert alert-primary collapse" id="howtouse" role="alert">
An API key is used by the SimpleLogin browser extensions. <div class="alert alert-danger">
<br><br>You can install the official SimpleLogin browser extensions through the following links: API Keys should be kept secret and treated like passwords, they can be used to gain access to your account.
<a href="https://chrome.google.com/webstore/detail/dphilobhebphkdjbpfohgikllaljmgbn"
target="_blank" rel="noopener">Chrome<i class="fe fe-external-link"></i></a>,
<a href="https://addons.mozilla.org/firefox/addon/simplelogin/"
target="_blank" rel="noopener">Firefox<i class="fe fe-external-link"></i></a> &
<a href="https://apps.apple.com/app/id1494051017"
target="_blank" rel="noopener">Safari<i class="fe fe-external-link"></i></a>
<br>
<span class="text-danger">
API Keys should be kept secret and treated like passwords, they can be used to gain access to your account.
</span>
</div> </div>
<div class="row"> <div class="row">
@ -96,7 +84,7 @@
{{ render_field_errors(new_api_key_form.name) }} {{ render_field_errors(new_api_key_form.name) }}
<div class="small-text">Name of the api key, e.g. where it will be used.</div> <div class="small-text">Name of the api key, e.g. where it will be used.</div>
<button class="btn btn-lg btn-success mt-2">Create</button> <button class="btn btn-success mt-2">Create</button>
</form> </form>

View File

@ -80,12 +80,6 @@
</a> </a>
<div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow"> <div class="dropdown-menu dropdown-menu-right dropdown-menu-arrow">
<a class="dropdown-item" href="{{ url_for('dashboard.api_key') }}">
<i class="dropdown-icon"><img src="/static/key.svg"></i> API Keys
</a>
<hr class="my-2">
<a class="dropdown-item" href="{{ url_for('auth.logout') }}"> <a class="dropdown-item" href="{{ url_for('auth.logout') }}">
<i class="dropdown-icon fe fe-log-out"></i> Sign out <i class="dropdown-icon fe fe-log-out"></i> Sign out
</a> </a>

View File

@ -63,4 +63,14 @@
Settings Settings
</a> </a>
</li> </li>
<li class="nav-item">
<a href="{{ url_for('dashboard.api_key') }}"
class="nav-link {{ 'active' if active_page == 'api_key' }}">
<i class="fa fa-key"></i>
API Keys
</a>
</li>
</ul> </ul>