26 lines
1.1 KiB
HTML
26 lines
1.1 KiB
HTML
{% from "components/icon.html" import Icon %}
|
|
|
|
<header class="topbar">
|
|
<nav class="topbar__navigation">
|
|
<a href="{{ url_for('atst.home') }}" class="topbar__link topbar__link--shield" title="JEDI Cloud Home">
|
|
{{ Icon('shield', classes='topbar__link-icon') }}
|
|
</a>
|
|
|
|
<div class="topbar__context {% if workspace %}topbar__context--workspace{% endif %}">
|
|
{% set topbar_link = url_for("workspaces.show_workspace", workspace_id=workspace.id) if workspace else url_for("atst.home") %}
|
|
<a href="{{ topbar_link }}" class="topbar__link">
|
|
<span class="topbar__link-label">{{ ("Workspace " + workspace.name) if workspace else "JEDI Cloud" }}</span>
|
|
</a>
|
|
|
|
<a href="/" class="topbar__link">
|
|
<span class="topbar__link-label">{{ g.current_user.first_name + " " + g.current_user.last_name }}</span>
|
|
{{ Icon('avatar', classes='topbar__link-icon') }}
|
|
</a>
|
|
|
|
<a href="/" class="topbar__link" title='Log out of JEDI Cloud'>
|
|
{{ Icon('logout', classes='topbar__link-icon') }}
|
|
</a>
|
|
</div>
|
|
</nav>
|
|
</header>
|