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 1e6e053  Fix a further bug with displaying draft candidate releases
1e6e053 is described below

commit 1e6e05357c8a8dd3ac7f4f8dcf7917159b40b192
Author: Sean B. Palmer <[email protected]>
AuthorDate: Fri May 30 18:47:22 2025 +0100

    Fix a further bug with displaying draft candidate releases
---
 atr/templates/check-selected-release-info.html | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/atr/templates/check-selected-release-info.html 
b/atr/templates/check-selected-release-info.html
index 0a4648b..ea2fbb6 100644
--- a/atr/templates/check-selected-release-info.html
+++ b/atr/templates/check-selected-release-info.html
@@ -39,9 +39,11 @@
         <a href="{{ as_url(routes.revisions.selected, 
project_name=release.project.name, version_name=release.version) }}"
            title="View revision history"
            class="btn btn-secondary"><i class="bi bi-clock-history me-1"></i> 
Revisions</a>
-        <a href="{{ as_url(routes.voting.selected_revision, 
project_name=release.project.name, version_name=release.version, 
revision=release.latest_revision_number) }}"
-           title="Start a vote on this draft"
-           class="btn btn-success"><i class="bi bi-check-circle me-1"></i> 
Start voting</a>
+        {% if revision_number %}
+          <a href="{{ as_url(routes.voting.selected_revision, 
project_name=release.project.name, version_name=release.version, 
revision=revision_number) }}"
+             title="Start a vote on this draft"
+             class="btn btn-success"><i class="bi bi-check-circle me-1"></i> 
Start voting</a>
+        {% endif %}
         <button class="btn btn-danger"
                 title="Delete this entire draft"
                 data-bs-toggle="modal"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to