From dbac22b0ce16e2520f1e7f3b15f9543cb30a183e Mon Sep 17 00:00:00 2001 From: Peter van Arkel Date: Tue, 24 Nov 2026 10:14:04 +0100 Subject: [PATCH] Show published release notes in the panel changelog --- CONTRIBUTING.md | 5 ++ .../hosting/templates/hosting/changelog.html | 33 ++++++++ .../templates/hosting/installation.html | 3 + .../templates/hosting/update_workspace.html | 3 +- src/coulobre/hosting/test_panel_roles.py | 3 + src/coulobre/hosting/test_update_views.py | 55 ++++++++++++- src/coulobre/hosting/update_views.py | 28 +++++-- src/coulobre/hosting/urls.py | 3 +- src/coulobre/hosting/workspaces.py | 1 + src/coulobre/release_updates.py | 79 ++++++++++++++++--- src/coulobre/test_release_updates.py | 36 +++++++++ 11 files changed, 230 insertions(+), 19 deletions(-) create mode 100644 src/coulobre/hosting/templates/hosting/changelog.html diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7e7e7c5..325bfd6 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -75,6 +75,11 @@ subsequent changes. instructions, and known limitations. Mark a release candidate as a prerelease. Close the milestone when its target version is published. +Gitea release notes are the project changelog. The panel displays published +notes under **System → Updates → Changelog**. Use short Markdown sections for +user-visible features, improvements, fixes, and upgrade instructions as +applicable. + ### Build and publish the Debian package Build from the same verified source distribution and wheel used for the diff --git a/src/coulobre/hosting/templates/hosting/changelog.html b/src/coulobre/hosting/templates/hosting/changelog.html new file mode 100644 index 0000000..8d51793 --- /dev/null +++ b/src/coulobre/hosting/templates/hosting/changelog.html @@ -0,0 +1,33 @@ +{% extends "hosting/update_workspace.html" %} +{% load release_notes %} + +{% block title %}Changelog · Coulobre Panel{% endblock %} + +{% block page_content %} +
+
+

Release history

+ All releases on Gitea +
+ {% if catalog_unavailable %} +

The release history is temporarily unavailable. Try again later or open Gitea.

+ {% else %} + {% for entry in entries %} +
+ + {{ entry.version }}{% if entry.prerelease %} · Prerelease{% endif %} + {% if entry.published_at %} · {% endif %} + + {% if entry.notes %} +
{{ entry.notes|release_notes_html }}
+ {% else %} +

No release notes were published.

+ {% endif %} +

View {{ entry.version }} on Gitea

+
+ {% empty %} +

No Coulobre releases have been published yet.

+ {% endfor %} + {% endif %} +
+{% endblock %} diff --git a/src/coulobre/hosting/templates/hosting/installation.html b/src/coulobre/hosting/templates/hosting/installation.html index 36e3d96..9877008 100644 --- a/src/coulobre/hosting/templates/hosting/installation.html +++ b/src/coulobre/hosting/templates/hosting/installation.html @@ -8,6 +8,9 @@

Installation

Installed version
{{ installed_version }}
+ {% if request.user.is_superuser %} +
Release history
Changelog
+ {% endif %}
Core software license
Apache License 2.0
Project
Source repository · Issue tracker
diff --git a/src/coulobre/hosting/templates/hosting/update_workspace.html b/src/coulobre/hosting/templates/hosting/update_workspace.html index e5c7233..61740d3 100644 --- a/src/coulobre/hosting/templates/hosting/update_workspace.html +++ b/src/coulobre/hosting/templates/hosting/update_workspace.html @@ -1,8 +1,9 @@ {% extends "hosting/workspace_page.html" %} {% block page_title %}Updates{% endblock %} {% block page_tabs %} -