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/28 16:25:52 UTC
(tooling-trusted-release) branch main updated: Move the route to start voting
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 4e1eaf4 Move the route to start voting
4e1eaf4 is described below
commit 4e1eaf4c9ecb6bb042ad60d5ec5a6f631374abfc
Author: Sean B. Palmer <se...@miscoranda.com>
AuthorDate: Mon Apr 28 17:25:35 2025 +0100
Move the route to start voting
---
atr/routes/modules.py | 2 +-
atr/routes/{vote.py => voting.py} | 2 +-
atr/templates/compose-selected.html | 4 ++--
atr/templates/vote-selected-revision.html | 4 ++--
4 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/atr/routes/modules.py b/atr/routes/modules.py
index 46e5a2b..0586643 100644
--- a/atr/routes/modules.py
+++ b/atr/routes/modules.py
@@ -34,7 +34,7 @@ import atr.routes.revisions as revisions
import atr.routes.root as root
import atr.routes.start as start
import atr.routes.upload as upload
-import atr.routes.vote as vote
+import atr.routes.voting as voting
# Export data for a custom linter script
diff --git a/atr/routes/vote.py b/atr/routes/voting.py
similarity index 99%
rename from atr/routes/vote.py
rename to atr/routes/voting.py
index 20c588b..3e618b2 100644
--- a/atr/routes/vote.py
+++ b/atr/routes/voting.py
@@ -33,7 +33,7 @@ import atr.user as user
import atr.util as util
-@routes.committer("/vote/<project_name>/<version_name>/<revision>", methods=["GET", "POST"])
+@routes.committer("/voting/<project_name>/<version_name>/<revision>", methods=["GET", "POST"])
async def selected_revision(
session: routes.CommitterSession, project_name: str, version_name: str, revision: str
) -> response.Response | str:
diff --git a/atr/templates/compose-selected.html b/atr/templates/compose-selected.html
index c053476..b2c2a2e 100644
--- a/atr/templates/compose-selected.html
+++ b/atr/templates/compose-selected.html
@@ -92,9 +92,9 @@
<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.vote.selected_revision, project_name=release.project.name, version_name=release.version, revision=release.revision) }}"
+ <a href="{{ as_url(routes.voting.selected_revision, project_name=release.project.name, version_name=release.version, revision=release.revision) }}"
title="Start a vote on this draft"
- class="btn btn-success"><i class="bi bi-check-circle me-1"></i> Start vote</a>
+ class="btn btn-success"><i class="bi bi-check-circle me-1"></i> Start voting</a>
<button class="btn btn-danger"
title="Delete this entire draft"
data-bs-toggle="modal"
diff --git a/atr/templates/vote-selected-revision.html b/atr/templates/vote-selected-revision.html
index 74640a0..cf4a7c7 100644
--- a/atr/templates/vote-selected-revision.html
+++ b/atr/templates/vote-selected-revision.html
@@ -23,7 +23,7 @@
</p>
<h1 class="mb-4">
- Start vote on <strong>{{ release.project.short_display_name }}</strong> <em>{{ release.version }}</em>
+ Start voting on <strong>{{ release.project.short_display_name }}</strong> <em>{{ release.version }}</em>
</h1>
<div class="px-3 py-4 mb-4 bg-light border rounded">
@@ -40,7 +40,7 @@
<form method="post"
id="vote-initiate-form"
class="atr-canary py-4 px-5"
- action="{{ as_url(routes.vote.selected_revision, project_name=release.project.name, version_name=release.version, revision=release.revision) }}">
+ action="{{ as_url(routes.voting.selected_revision, project_name=release.project.name, version_name=release.version, revision=release.revision) }}">
{{ form.hidden_tag() if form.hidden_tag }}
{{ form.release_name }}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org