show promotion info in ui
This commit is contained in:
parent
023f68d0c3
commit
ce32f58b9a
2 changed files with 12 additions and 1 deletions
|
|
@ -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'])
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
</tr>
|
||||
#if $build.draft
|
||||
<th>Draft</th><td>True</td>
|
||||
#else
|
||||
#else
|
||||
<th>Draft</th><td>False</td>
|
||||
#end if
|
||||
#if $build.get('source')
|
||||
|
|
@ -97,6 +97,14 @@
|
|||
<th>Completed</th><td>$util.formatTimeLong($build.completion_ts)</td>
|
||||
</tr>
|
||||
#end if
|
||||
#if $build.promotion_ts
|
||||
<tr>
|
||||
<th>Promoted</th><td>$util.formatTimeLong($build.promotion_ts)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Promoted by</th><td class="user-$build.promoter_name"><a href="userinfo?userID=$build.promoter_id">$util.escapeHTML($build.promoter_name)</a></td>
|
||||
</tr>
|
||||
#end if
|
||||
#if $build.cg_id
|
||||
<tr>
|
||||
<th>Content generator</th><td>$util.escapeHTML($build.cg_name)</td>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue