Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions cms/sass/components/_buttons.scss
Original file line number Diff line number Diff line change
Expand Up @@ -124,3 +124,14 @@ button.aria-button {
-moz-appearance: none;
appearance: none;
}

.user-actions {
display: flex;
align-items: center;

.user-item {
form {
margin: 0;
}
}
}
33 changes: 21 additions & 12 deletions portality/templates-v2/management/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -174,18 +174,27 @@ <h1>
{% include "includes/_flash_notification.html" %}
{% block management_content %}{% endblock %}

<p>
<small>
<a href="{{ url_for('account.logout') }}" class="tag" id="logout">
<span data-feather="log-out" aria-hidden="true"></span>
Log out
</a>
<a href="{{ url_for('account.username', username=current_user.id) }}" class="tag">
<span data-feather="settings" aria-hidden="true"></span>
Settings
</a>
</small>
</p>
<section class="user-actions">
<div class="user-item">
<form method="POST" action="{{ url_for('account.logout') }}">
<small>
<button type="submit" id="logout" class="tag">
Logout
<span data-feather="log-out" aria-hidden="true"></span>
</button>
</small>
</form>
</div>

<div class="user-item">
<small>
<a href="{{ url_for('account.username', username=current_user.id) }}" class="tag">
<span data-feather="settings" aria-hidden="true"></span>
Settings
</a>
</small>
</div>
</section>
</main>
{% include "includes/_back-to-top.html" %}

Expand Down
Loading