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 6868104 Disallow the use of the button to start voting when there are
no files
6868104 is described below
commit 686810445e91690a00f06cbaf6f04840b8d240f2
Author: Sean B. Palmer <[email protected]>
AuthorDate: Tue Jul 1 14:52:39 2025 +0100
Disallow the use of the button to start voting when there are no files
---
atr/templates/check-selected-release-info.html | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
diff --git a/atr/templates/check-selected-release-info.html
b/atr/templates/check-selected-release-info.html
index 3095f18..829f878 100644
--- a/atr/templates/check-selected-release-info.html
+++ b/atr/templates/check-selected-release-info.html
@@ -53,9 +53,18 @@
title="View revision history"
class="btn btn-secondary"><i class="bi bi-clock-history me-1"></i>
Revisions</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>
+ {% if has_files %}
+ <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>
+ {% else %}
+ <a href="#"
+ title="Upload files to enable voting"
+ class="btn btn-success disabled"
+ role="button"
+ aria-disabled="true"
+ tabindex="-1"><i class="bi bi-check-circle me-1"></i> Start
voting</a>
+ {% endif %}
{% endif %}
<button class="btn btn-danger"
title="Delete this entire draft"
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]