This is an automated email from the ASF dual-hosted git repository.
wave pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
The following commit(s) were added to refs/heads/main by this push:
new d9b97c9 Move auth buttons (#634)
d9b97c9 is described below
commit d9b97c9454eb0e96ba7fc84e5bccd9d46d024a41
Author: Abhishek Mishra <[email protected]>
AuthorDate: Sun Feb 8 23:49:30 2026 +0530
Move auth buttons (#634)
* Move auth buttons
* Fix nav button styling and alignment
* Fix nav button styling: align User dropdown with other dropdowns and
remove extra margin from Log out button
---
atr/templates/includes/topnav.html | 52 +++++++++++++++++---------------------
1 file changed, 23 insertions(+), 29 deletions(-)
diff --git a/atr/templates/includes/topnav.html
b/atr/templates/includes/topnav.html
index 5d1ce12..eb62316 100644
--- a/atr/templates/includes/topnav.html
+++ b/atr/templates/includes/topnav.html
@@ -280,37 +280,31 @@
</li>
{% endif %}
</ul>
- <ul class="navbar-nav">
- <li class="nav-item dropdown">
- <button class="nav-link dropdown-toggle btn"
- id="dropdownUser"
- type="button"
- data-bs-toggle="dropdown"
- aria-expanded="false"
- aria-controls="menuUser">
- Log
- {% if current_user %}
- out
- {% else %}
- in
- {% endif %}
- </button>
- <ul class="dropdown-menu dropdown-menu-end"
- id="menuUser"
- aria-labelledby="dropdownUser">
- <div class="user-menu">
- {% if current_user %}
+ <ul class="navbar-nav align-items-center">
+ {% if current_user %}
+ <li class="nav-item dropdown">
+ <button class="nav-link dropdown-toggle btn"
+ id="dropdownUser"
+ type="button"
+ data-bs-toggle="dropdown"
+ aria-expanded="false"
+ aria-controls="menuUser">User</button>
+ <ul class="dropdown-menu dropdown-menu-end"
+ id="menuUser"
+ aria-labelledby="dropdownUser">
+ <div class="user-menu">
<span>{{ current_user.fullname }}</span>
(<code>{{ current_user.uid }}</code>)
- <br />
- <a href="/auth?logout=/"
- class="logout-link btn btn-sm btn-outline-secondary
mt-2">Log out</a>
- {% else %}
- <a href="/auth?login={{ request.path }}"
- class="login-link btn btn-sm btn-secondary">Log in</a>
- {% endif %}
- </div>
- </ul>
+ </div>
+ </ul>
+ </li>
+ {% endif %}
+ <li class="nav-item">
+ {% if current_user %}
+ <a href="/auth?logout=/" class="logout-link btn btn-sm
btn-secondary ms-2">Log out</a>
+ {% else %}
+ <a href="/auth?login={{ request.path }}" class="login-link btn
btn-sm btn-secondary ms-2">Log in</a>
+ {% endif %}
</li>
<li class="nav-item dropdown">
<button class="nav-link dropdown-toggle btn"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]