From ce32f58b9a05d8614629b1f0fe74316f1e810835 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Jan 05 2024 10:01:01 +0000 Subject: show promotion info in ui --- diff --git a/cli/koji_cli/commands.py b/cli/koji_cli/commands.py index 58026dc..3cb4772 100644 --- a/cli/koji_cli/commands.py +++ b/cli/koji_cli/commands.py @@ -3687,6 +3687,9 @@ def anon_handle_buildinfo(goptions, session, args): else: print("Task: none") print("Finished: %s" % koji.formatTimeLong(info['completion_ts'])) + if info.get('promotion_ts'): + print("Promoted by: %(promoter_name)s" % info) + print("Promoted at: %s" % koji.formatTimeLong(info['promotion_ts'])) maven_info = session.getMavenBuild(info['id']) if maven_info: print("Maven groupId: %s" % maven_info['group_id']) diff --git a/www/kojiweb/buildinfo.chtml b/www/kojiweb/buildinfo.chtml index 5b1fbe0..e7a45e8 100644 --- a/www/kojiweb/buildinfo.chtml +++ b/www/kojiweb/buildinfo.chtml @@ -26,7 +26,7 @@ #if $build.draft DraftTrue - #else + #else DraftFalse #end if #if $build.get('source') @@ -97,6 +97,14 @@ Completed$util.formatTimeLong($build.completion_ts) #end if + #if $build.promotion_ts + + Promoted$util.formatTimeLong($build.promotion_ts) + + + Promoted by$util.escapeHTML($build.promoter_name) + + #end if #if $build.cg_id Content generator$util.escapeHTML($build.cg_name)