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 2fae2f8  Remove unused templates
2fae2f8 is described below

commit 2fae2f8923e2146f7e9a2684e721cba3c2313556
Author: Sean B. Palmer <[email protected]>
AuthorDate: Sat May 3 11:46:25 2025 +0100

    Remove unused templates
---
 atr/templates/candidate-resolve.html | 117 -----------------------------------
 atr/templates/preview-announce.html  | 104 -------------------------------
 2 files changed, 221 deletions(-)

diff --git a/atr/templates/candidate-resolve.html 
b/atr/templates/candidate-resolve.html
deleted file mode 100644
index b08f395..0000000
--- a/atr/templates/candidate-resolve.html
+++ /dev/null
@@ -1,117 +0,0 @@
-{% extends "layouts/base.html" %}
-
-{% block title %}
-  Resolve release candidate vote ~ ATR
-{% endblock title %}
-
-{% block description %}
-  Resolve a vote on a release candidate.
-{% endblock description %}
-
-{% block stylesheets %}
-  {{ super() }}
-  <style>
-      .atr-candidate-meta-item::after {
-          content: "•";
-          margin-left: 1rem;
-          color: #ccc;
-      }
-
-      .atr-candidate-meta-item:last-child::after {
-          content: none;
-      }
-  </style>
-{% endblock stylesheets %}
-
-{% block content %}
-  <h1>Resolve release candidate vote</h1>
-
-  <p>
-    This page shows all of the release candidates with ongoing votes that you 
can resolve. If you resolve a vote as passed, the release candidate will be 
promoted to the next stage, making it a release preview. If you resolve a vote 
as failed, the release candidate will be returned to the draft stage.
-  </p>
-
-  {% if candidates %}
-    {% for candidate in candidates %}
-      <div class="card mb-3 bg-light">
-        <div class="card-body">
-          <h3 class="card-title mb-2">{{ candidate.project.display_name }} {{ 
candidate.version }}</h3>
-          <div class="d-flex flex-wrap gap-3 pb-3 mb-2 border-bottom 
text-secondary fs-6">
-            <span class="atr-candidate-meta-item">Stage: {{ 
candidate.stage.value.upper() }}</span>
-            <span class="atr-candidate-meta-item">Phase: {{ 
candidate.phase.value.upper() }}</span>
-            <span class="atr-candidate-meta-item">Created: {{ 
candidate.created.strftime("%Y-%m-%d %H:%M:%S UTC") }}</span>
-          </div>
-
-          {% set vote_task, task_mid, archive_url = 
candidate_vote_tasks[candidate.name] %}
-          <div class="mt-2 p-3 border rounded bg-white mb-3">
-            {% if vote_task %}
-              {% if vote_task.status.value == "completed" %}
-                <p class="mb-0 text-success fw-semibold">
-                  <i class="bi bi-check-circle me-1"></i> Vote email sent: {{ 
vote_task.completed.strftime("%Y-%m-%d %H:%M:%S UTC") }}
-                </p>
-                {% if task_mid %}
-                  <p class="mt-2 mb-0 text-muted ps-4">
-                    Message-ID: <code class="user-select-all">{{ task_mid 
}}</code>
-                  </p>
-                {% endif %}
-              {% elif vote_task.status.value == "failed" %}
-                <p class="mb-1 text-danger fw-semibold">
-                  <i class="bi bi-x-circle me-1"></i> Vote email failed: {{ 
vote_task.completed.strftime("%Y-%m-%d %H:%M:%S UTC") }}
-                </p>
-                <div class="alert alert-danger mt-2 mb-0 p-2" role="alert">
-                  <p class="mb-0 p-2 text-danger">{{ vote_task.error }}</p>
-                </div>
-              {% else %}
-                <p class="mb-0 text-warning fw-semibold">
-                  <i class="bi bi-hourglass-split me-1"></i> Vote email 
status: {{ vote_task.status.value.upper() }}
-                  {% if vote_task.started %}
-                    (Started: {{ vote_task.started.strftime("%Y-%m-%d %H:%M:%S 
UTC") }})
-                  {% else %}
-                    (Added: {{ vote_task.added.strftime("%Y-%m-%d %H:%M:%S 
UTC") }})
-                  {% endif %}
-                </p>
-              {% endif %}
-              {% if archive_url %}
-                <p class="mt-2 mb-0 text-muted ps-4">
-                  <a href="{{ archive_url }}"
-                     rel="noopener"
-                     target="_blank"
-                     title="View vote email thread in the archive (opens in 
new window)">View vote email thread in the archive <i class="bi 
bi-box-arrow-up-right ms-1"></i></a>
-                </p>
-              {% endif %}
-            {% else %}
-              <p class="mb-0 text-muted">
-                <i class="bi bi-question-circle me-1"></i> Vote email: No task 
found
-              </p>
-            {% endif %}
-          </div>
-
-          <form method="post"
-                action="{{ as_url(routes.resolve.selected_post, 
project_name=candidate.project.name, version_name=candidate.version) }}"
-                class="mt-3 p-3 border rounded bg-white">
-            <input type="hidden" name="candidate_name" value="{{ 
candidate.name }}" />
-            {{ candidate_forms[candidate.name].csrf_token }}
-
-            <div class="mb-3">
-              <label class="form-label fw-semibold"
-                     for="{{ candidate_forms[candidate.name].vote_result.id 
}}">
-                {{ candidate_forms[candidate.name].vote_result.label.text }}:
-              </label>
-              <div class="d-flex gap-4 mt-2">
-                {% for subfield in candidate_forms[candidate.name].vote_result 
%}
-                  <div class="form-check">
-                    {{ subfield(class="form-check-input", id=subfield.id ~ "_" 
~ loop.index) }}
-                    <label class="form-check-label" for="{{ subfield.id }}_{{ 
loop.index }}">{{ subfield.label.text }}</label>
-                  </div>
-                {% endfor %}
-              </div>
-            </div>
-
-            {{ candidate_forms[candidate.name].submit(class_="btn 
btn-primary") }}
-          </form>
-        </div>
-      </div>
-    {% endfor %}
-  {% else %}
-    <p class="text-secondary fst-italic">There are no ongoing votes to resolve 
at present.</p>
-  {% endif %}
-{% endblock content %}
diff --git a/atr/templates/preview-announce.html 
b/atr/templates/preview-announce.html
deleted file mode 100644
index 4b1a6b8..0000000
--- a/atr/templates/preview-announce.html
+++ /dev/null
@@ -1,104 +0,0 @@
-{% extends "layouts/base.html" %}
-
-{% block title %}
-  Announce a release preview ~ ATR
-{% endblock title %}
-
-{% block description %}
-  Announce a release preview.
-{% endblock description %}
-
-{% block stylesheets %}
-  {{ super() }}
-  <style>
-      .page-preview-meta-item::after {
-          content: "•";
-          margin-left: 1rem;
-          color: #ccc;
-      }
-
-      .page-preview-meta-item:last-child::after {
-          content: none;
-      }
-  </style>
-{% endblock stylesheets %}
-
-{% block content %}
-  <h1>Announce release preview</h1>
-
-  <p>On this page you can announce any release preview. This will move the 
preview into the final release directory.</p>
-
-  {% if previews %}
-    <h2>Release previews</h2>
-    <ul>
-      {% for preview in previews %}
-        <li>
-          <a href="#{{ preview.name }}">{{ preview.name }}</a>
-        </li>
-      {% endfor %}
-    </ul>
-
-    <h2>Actions</h2>
-
-    {% for preview in previews %}
-      <div id="{{ preview.name }}" class="card mb-4 shadow-sm">
-        <div class="card-header bg-light">
-          <h3 class="card-title mb-0">{{ preview.name }}</h3>
-        </div>
-        <div class="card-body">
-          <div class="d-flex flex-wrap gap-3 pb-3 mb-3 border-bottom 
text-secondary fs-6">
-            <span class="page-preview-meta-item">Stage: {{ 
preview.stage.value.upper() }}</span>
-            <span class="page-preview-meta-item">Phase: {{ 
preview.phase.value.upper() }}</span>
-            <span class="page-preview-meta-item">Revision: {{ preview.revision 
}}</span>
-            <span class="page-preview-meta-item">Created: {{ 
preview.created.strftime("%Y-%m-%d %H:%M:%S UTC") }}</span>
-          </div>
-
-          <div class="row mt-3">
-            <div class="col-12">
-              <div class="card mb-3 border-primary">
-                <div class="card-header bg-primary bg-opacity-10 text-primary">
-                  <h5 class="mb-0">Announce preview</h5>
-                </div>
-                <div class="card-body">
-                  <p class="text-muted mb-3">Announcing will move this preview 
to the final release directory.</p>
-                  <form method="post"
-                        action="{{ as_url(routes.announce.selected_post, 
project_name=preview.project.name, version_name=preview.version) }}">
-                    {{ announce_form.hidden_tag() }}
-                    <input type="hidden" name="preview_name" value="{{ 
preview.name }}" />
-                    <input type="hidden" name="preview_revision" value="{{ 
preview.revision }}" />
-                    <div class="mb-3">
-                      <div class="form-check">
-                        {{ 
announce_form.confirm_announce(class="form-check-input", id="confirm_announce_" 
+ preview.name) }}
-                        <label class="form-check-label" 
for="confirm_announce_{{ preview.name }}">
-                          I understand this will announce the preview
-                        </label>
-                      </div>
-                      {% if announce_form.confirm_announce.errors %}
-                        <div class="invalid-feedback d-block">
-                          {% for error in 
announce_form.confirm_announce.errors %}{{ error }}{% endfor %}
-                        </div>
-                      {% endif %}
-                    </div>
-                    <button type="submit"
-                            class="btn btn-primary"
-                            title="Announce {{ preview.project.display_name }} 
{{ preview.version }}">
-                      {{ announce_form.submit.label.text }}
-                    </button>
-                  </form>
-                </div>
-              </div>
-            </div>
-          </div>
-        </div>
-      </div>
-    {% endfor %}
-  {% else %}
-    <div class="alert alert-info">
-      <p class="mb-0">You haven't created any release previews yet.</p>
-    </div>
-  {% endif %}
-{% endblock content %}
-
-{% block javascripts %}
-  {{ super() }}
-{% endblock javascripts %}


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

Reply via email to