You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by sb...@apache.org on 2025/04/29 19:26:01 UTC
(tooling-trusted-release) branch main updated: Make sidebar items accord better with user permissions
This is an automated email from the ASF dual-hosted git repository.
sbp pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-release.git
The following commit(s) were added to refs/heads/main by this push:
new 500e068 Make sidebar items accord better with user permissions
500e068 is described below
commit 500e068b8f7ac783163338e99c41d9bfcffd0add
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Tue Apr 29 20:25:27 2025 +0100
Make sidebar items accord better with user permissions
Resolves #46.
---
atr/templates/includes/sidebar.html | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/atr/templates/includes/sidebar.html b/atr/templates/includes/sidebar.html
index a1f769a..aff189f 100644
--- a/atr/templates/includes/sidebar.html
+++ b/atr/templates/includes/sidebar.html
@@ -28,15 +28,15 @@
{% endif %}
</div>
<nav>
- <h3>Get started</h3>
- <ul>
- <li>
- <i class="bi bi-play-circle"></i>
- <a href="{{ as_url(routes.root.index) }}">Select release</a>
- </li>
- </ul>
-
{% if current_user %}
+ <h3>Get started</h3>
+ <ul>
+ <li>
+ <i class="bi bi-play-circle"></i>
+ <a href="{{ as_url(routes.root.index) }}">Select release</a>
+ </li>
+ </ul>
+
{% set unfinished_releases = unfinished_releases_fn(current_user.uid) %}
{% if unfinished_releases %}
{% for project_short_display_name, releases in unfinished_releases.items() %}
@@ -51,15 +51,15 @@
</ul>
{% endfor %}
{% endif %}
-
- <h3>Releases</h3>
- <ul>
- <li>
- <i class="bi bi-view-list"></i>
- <a href="{{ as_url(routes.release.releases) }}">View releases</a>
- </li>
- </ul>
-
+ {% endif %}
+ <h3>Releases</h3>
+ <ul>
+ <li>
+ <i class="bi bi-view-list"></i>
+ <a href="{{ as_url(routes.release.releases) }}">View releases</a>
+ </li>
+ </ul>
+ {% if current_user %}
<h3>Public keys</h3>
<ul>
<li>
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org