You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tooling.apache.org by ar...@apache.org on 2026/07/27 16:23:06 UTC
(tooling-trusted-releases) 01/02: #1448 - overloaded version param by accident
This is an automated email from the ASF dual-hosted git repository.
alitheg pushed a commit to branch arm
in repository https://gitbox.apache.org/repos/asf/tooling-trusted-releases.git
commit ec9e7caefc8e5bfe795b7429dff1ddbdf7971fcf
Author: Alastair McFarlane <ar...@apache.org>
AuthorDate: Mon Jul 27 15:27:20 2026 +0100
#1448 - overloaded version param by accident
---
atr/catalog_site.py | 2 +-
atr/templates/catalog_site/release.html | 20 ++++++++++----------
2 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/atr/catalog_site.py b/atr/catalog_site.py
index 18099610..48b19f48 100644
--- a/atr/catalog_site.py
+++ b/atr/catalog_site.py
@@ -230,7 +230,7 @@ async def _write_release(
_ENVIRONMENT.get_template("release.html").render(
committee=committee,
project=project,
- version=version,
+ release_version=version,
root="../../../",
),
)
diff --git a/atr/templates/catalog_site/release.html b/atr/templates/catalog_site/release.html
index 62c24f28..9cd7c238 100644
--- a/atr/templates/catalog_site/release.html
+++ b/atr/templates/catalog_site/release.html
@@ -1,31 +1,31 @@
{% extends "catalog_site_base.html" %}
-{%- block title -%}{{ project.display_name }} {{ version.version }} ~ Apache Release Catalog{%- endblock title -%}
+{%- block title -%}{{ project.display_name }} {{ release_version.version }} ~ Apache Release Catalog{%- endblock title -%}
-{%- block description -%}{{ project.display_name }} {{ version.version }} artifacts and downloads.{%- endblock description -%}
+{%- block description -%}{{ project.display_name }} {{ release_version.version }} artifacts and downloads.{%- endblock description -%}
{% block content %}
<p class="mb-1"><a href="../index.html" class="atr-back-link">← {{ project.display_name }}</a></p>
- <h1 class="mb-3">{{ project.display_name }} {{ version.version }}</h1>
+ <h1 class="mb-3">{{ project.display_name }} {{ release_version.version }}</h1>
{% set status_classes = {"released": "text-bg-success", "archived": "text-bg-secondary"} %}
- <div class="card mb-3 shadow-sm atr-catalog-version" data-status="{{ version.status }}">
+ <div class="card mb-3 shadow-sm atr-catalog-version" data-status="{{ release_version.status }}">
<div class="d-flex">
<div class="atr-certified-panel d-flex align-items-center justify-content-center border-end">
- {% if version.managed %}
+ {% if release_version.managed %}
<img src="{{ root }}assets/svg/atr_certified_badge.svg" class="atr-certified-badge" alt="ATR certified">
{% endif %}
</div>
<div class="card-body">
<div class="d-flex justify-content-between align-items-center mb-1">
- <strong class="fs-5">{{ version.version }}</strong>
- <span class="badge {{ status_classes[version.status] }}">{{ version.status | capitalize }}</span>
+ <strong class="fs-5">{{ release_version.version }}</strong>
+ <span class="badge {{ status_classes[release_version.status] }}">{{ release_version.status | capitalize }}</span>
</div>
<p class="text-muted small mb-2">
- {% if version.released %}{{ version.released.strftime("%d %b %Y") }}{% elif version.svn_revision %}svn r{{ version.svn_revision }}{% endif %}
+ {% if release_version.released %}{{ release_version.released.strftime("%d %b %Y") }}{% elif release_version.svn_revision %}svn r{{ release_version.svn_revision }}{% endif %}
</p>
- {% if version.artifacts %}
- {% for artifact in version.artifacts %}
+ {% if release_version.artifacts %}
+ {% for artifact in release_version.artifacts %}
<div class="d-flex flex-wrap justify-content-between gap-2 py-1 atr-catalog-artifact">
<span class="font-monospace small">
{{ artifact.artifact_path }}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@tooling.apache.org
For additional commands, e-mail: commits-help@tooling.apache.org