Update navbar and dropdown: hide API Tokens from users, rename Tokens to Linked Apps

parent 1156d3dd
......@@ -33,7 +33,9 @@
<a href="/analyze" {% if active_page == 'analyze' %}class="active"{% endif %}>Analyze</a>
<a href="/train" {% if active_page == 'train' %}class="active"{% endif %}>Train</a>
<a href="/history" {% if active_page == 'history' %}class="active"{% endif %}>History</a>
{% if user.get('role') == 'admin' %}
<a href="/api_tokens" {% if active_page == 'api_tokens' %}class="active"{% endif %}>API Tokens</a>
{% endif %}
<a href="/settings" {% if active_page == 'settings' %}class="active"{% endif %}>Settings</a>
</nav>
<div class="user-menu">
......@@ -43,7 +45,7 @@
<div id="userDropdown" class="user-dropdown">
<a href="/account">Account</a>
{% if user.get('role') != 'admin' %}
<a href="/api_tokens">Tokens</a>
<a href="/api_tokens">Linked Apps</a>
{% else %}
<a href="/admin/users">Users</a>
<a href="/config">Configurations</a>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment