debian-koji/www/kojiweb/reporequest.chtml
Mike McLean 357587a57c repo requests web ui
* new page for request details
* new page for querying requests
* add links in taginfo and taskinfo pages
* show more data in repoinfo page
2025-06-12 13:24:12 +02:00

41 lines
1.5 KiB
Text

#import json
#import koji
#from kojiweb import util
#include "includes/header.chtml"
<h4>Information for repo request $req_id</h4>
#if not $req
Repo request $req_id not found.
#else
<table>
<tr><th>ID</th><td>$req.id</td><th></tr>
<tr><th>Active</th><td>$req.active</td><th></tr>
<tr><th>Priority</th><td>$req.priority</td><th></tr>
<tr><th>Tag</th><td><a href="taginfo?tagID=$req.tag_id">$req.tag_name</a></td></tr>
#if $req.at_event
<tr><th>At specific event</th><td>$at_event.id ($util.formatTimeLong($at_event.ts))</td><th></tr>
#elif $req.min_event
<tr><th>Minimum event</th><td>$min_event.id ($util.formatTimeLong($min_event.ts))</td><th></tr>
#else
<tr><th>Invalid event</th><td>Unable to determine event for request</td><th></tr>
#end if
#if $req.opts
<th>Options</th><td class="usertext">$json.dumps($req.opts, indent=4)</td>
#end if
#if $req.repo_id
<tr><th>Fulfilled by repo</th><td><a href="repoinfo?repoID=$req.repo_id">$req.repo_id</a</td></tr>
#end if
#if $req.task_id
<tr><th>Task ID</th><td><a href="taskinfo?taskID=$req.task_id">$req.task_id</a> ($util.taskState($req.task_state))</td></tr>
<tr><th>Tries</th><td>$req.tries</td></tr>
#end if
<tr><th>Owner</th><td><a href="userinfo?userID=$req.owner">$req.owner_name</a></td></tr>
<tr><th>Created</th><td>$util.formatTimeLong($req.create_ts)</td></tr>
<tr><th>Updated</th><td>$util.formatTimeLong($req.update_ts)</td></tr>
</table>
#end if
#include "includes/footer.chtml"