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 d33faec  Improve the candidate draft promotion page
d33faec is described below

commit d33faec74dfb447e343c55e242f88d07b7fb1025
Author: Sean B. Palmer <[email protected]>
AuthorDate: Thu Mar 27 19:30:47 2025 +0200

    Improve the candidate draft promotion page
---
 atr/templates/draft-promote.html | 34 +++++++++++++++++++++++-----------
 1 file changed, 23 insertions(+), 11 deletions(-)

diff --git a/atr/templates/draft-promote.html b/atr/templates/draft-promote.html
index 65a9993..c7529c2 100644
--- a/atr/templates/draft-promote.html
+++ b/atr/templates/draft-promote.html
@@ -11,13 +11,13 @@
 {% block stylesheets %}
   {{ super() }}
   <style>
-      .candidate-meta-item::after {
+      .atr-candidate-meta-item::after {
           content: "•";
           margin-left: 1rem;
           color: #ccc;
       }
 
-      .candidate-meta-item:last-child::after {
+      .atr-candidate-meta-item:last-child::after {
           content: none;
       }
   </style>
@@ -26,21 +26,33 @@
 {% block content %}
   <h1>Promote candidate draft</h1>
 
-  <p>Here are all the release candidate drafts to which you have access.</p>
+  <p>
+    On this page you can promote any release candidate draft to a release 
candidate. This will freeze the candidate draft into a candidate that can be 
voted on.
+  </p>
 
   {% if candidate_drafts %}
+    <h2>Candidate drafts</h2>
+    <ul>
+      {% for candidate_draft in candidate_drafts %}
+        <li>
+          <a href="#{{ candidate_draft.name }}">{{ candidate_draft.name }}</a>
+        </li>
+      {% endfor %}
+    </ul>
+
+    <h2>Actions</h2>
+
     {% for candidate_draft in candidate_drafts %}
-      <div class="card mb-4 shadow-sm">
+      <div id="{{ candidate_draft.name }}" class="card mb-4 shadow-sm">
         <div class="card-header bg-light">
-          <h3 class="card-title mb-0">{{ candidate_draft.project.name }}</h3>
+          <h3 class="card-title mb-0">{{ candidate_draft.name }}</h3>
         </div>
         <div class="card-body">
-          <div class="d-flex flex-wrap gap-3 pb-3 mb-3 border-bottom 
candidate-meta text-secondary fs-6">
-            <span class="candidate-meta-item">Version: {{ 
candidate_draft.version }}</span>
-            <span class="candidate-meta-item">Stage: {{ 
candidate_draft.stage.value.upper() }}</span>
-            <span class="candidate-meta-item">Phase: {{ 
candidate_draft.phase.value.upper() }}</span>
-            <!-- <span class="candidate-meta-item">Project: {{ 
candidate_draft.project.name if candidate_draft.project else "unknown" 
}}</span> -->
-            <span class="candidate-meta-item">Created: {{ 
candidate_draft.created.strftime("%Y-%m-%d %H:%M UTC") }}</span>
+          <div class="d-flex flex-wrap gap-3 pb-3 mb-3 border-bottom 
text-secondary fs-6">
+            <!-- <span class="atr-candidate-meta-item">Version: {{ 
candidate_draft.version }}</span> -->
+            <span class="atr-candidate-meta-item">Stage: {{ 
candidate_draft.stage.value.upper() }}</span>
+            <span class="atr-candidate-meta-item">Phase: {{ 
candidate_draft.phase.value.upper() }}</span>
+            <span class="atr-candidate-meta-item">Created: {{ 
candidate_draft.created.strftime("%Y-%m-%d %H:%M UTC") }}</span>
           </div>
 
           <div class="row mt-3">


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

Reply via email to