Skip to content

Commit

Permalink
Add logout button to settings
Browse files Browse the repository at this point in the history
  • Loading branch information
TimVosch committed Apr 29, 2024
1 parent 3fd40e2 commit a177bf4
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 50 deletions.
9 changes: 9 additions & 0 deletions services/tenants/transports/webui/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,11 @@ video {
margin-right: auto;
}

.my-1 {
margin-top: 0.25rem;
margin-bottom: 0.25rem;
}

.my-4 {
margin-top: 1rem;
margin-bottom: 1rem;
Expand Down Expand Up @@ -640,6 +645,10 @@ video {
margin-top: 0.25rem;
}

.mt-10 {
margin-top: 2.5rem;
}

.mt-12 {
margin-top: 3rem;
}
Expand Down
10 changes: 9 additions & 1 deletion services/tenants/transports/webui/views/layout.qtpl
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
{% func renderSidebar() %}
<section class="flex flex-col border-r">
<h1 class="p-6 text-lg text-center">Settings</h1>
<hr class="px-6 py-1">
<hr class="px-6 my-1">
<ul class="flex flex-col">
<li>
<a
Expand All @@ -72,6 +72,14 @@
href="{%s U("/switch") %}">Switch tenant</a>
</li>
</ul>
<hr class="px-6 my-1">
<ul class="flex flex-col">
<li>
<a
class="block text-sm py-3 px-6 transition-colors duration-150 hover:bg-gray-50"
href="{%s U("/auth/logout") %}">Logout</a>
</li>
</ul>
</section>
{% endfunc %}

Expand Down
110 changes: 61 additions & 49 deletions services/tenants/transports/webui/views/layout.qtpl.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a177bf4

Please sign in to comment.