From 7f58a15444416d41f01dbd045cf1972250998920 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Fri, 14 Feb 2025 12:25:51 +0000 Subject: [PATCH] builds: Move commenting into a modal Signed-off-by: Michael Tremer --- src/templates/builds/macros.html | 45 ++++++++++++++++++++++++++++++++ src/templates/builds/show.html | 28 +++----------------- 2 files changed, 49 insertions(+), 24 deletions(-) diff --git a/src/templates/builds/macros.html b/src/templates/builds/macros.html index 6c718f53..6d253bc3 100644 --- a/src/templates/builds/macros.html +++ b/src/templates/builds/macros.html @@ -20,6 +20,51 @@ {% from "users/macros.html" import Avatar with context %} +{% macro BuildComment(build) %} + + + + + + + + + {{ _("Comment") }} + + +{% endmacro %} + {% macro BuildList(builds, shorter=False, limit=None, more_url=None) %} {% if builds %} {% set rest = False %} diff --git a/src/templates/builds/show.html b/src/templates/builds/show.html index ba3d1f6a..b046ee04 100644 --- a/src/templates/builds/show.html +++ b/src/templates/builds/show.html @@ -2,7 +2,7 @@ {% from "macros.html" import Text with context %} {% from "bugs/macros.html" import BugList with context %} -{% from "builds/macros.html" import BuildPackages, BuildWatchers with context %} +{% from "builds/macros.html" import BuildComment, BuildPackages, BuildWatchers with context %} {% from "builds/groups/macros.html" import BuildGroupList with context %} {% from "events/macros.html" import EventList with context %} {% from "jobs/macros.html" import JobList with context %} @@ -130,6 +130,9 @@ {{ _("Delete Build") }} {% endif %} + + {# Comment #} + {{ BuildComment(build) }} @@ -238,27 +241,4 @@ {{ EventList(priority=4, build=build, show_build=False) }} - - {# Comment - This probably should go into a modal #} -
-
-
- {{ xsrf_form_html() | safe }} - -
- -
- -
-
- -
-
- -
-
-
-
-
{% endblock %} -- 2.47.2