/usr/share/koji-web/scripts/buildsbystatus.chtml is in koji-servers 1.10.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 | #from kojiweb import util
#def printOption(value, label=None)
#if not $label
#set $label = $value
#end if
<option value="$value"#if $value == $days then ' selected="selected"' else ''#>$label</option>
#end def
#include "includes/header.chtml"
<h4>Succeeded/Failed/Canceled Builds#if $days != -1 then ' in the last %i days' % $days else ''#</h4>
<table class="data-list">
<tr style="text-align: left">
<td colspan="3">
<form action="">
Show last
<select onchange="javascript: window.location = 'buildsbystatus?days=' + this.value;">
$printOption(1)
$printOption(3)
$printOption(5)
$printOption(7)
$printOption(14)
$printOption(30)
$printOption(60)
$printOption(90)
$printOption(120)
$printOption(-1, 'all')
</select> days
</form>
</td>
</tr>
<tr class="list-header">
<th>Type</th>
<th>Builds</th>
<th> </th>
</tr>
<tr class="row-odd taskclosed">
<td>Succeeded</td>
<td width="#echo $graphWidth + 5#"><img src="$util.themePath('images/1px.gif')" width="#echo $increment * $numSucceeded#" height="15" class="graphrow" alt="graph row"/></td>
<td>$numSucceeded</td>
</tr>
<tr class="row-even taskfailed">
<td>Failed</td>
<td width="#echo $graphWidth + 5#"><img src="$util.themePath('images/1px.gif')" width="#echo $increment * $numFailed#" height="15" class="graphrow" alt="graph row"/></td>
<td>$numFailed</td>
</tr>
<tr class="row-odd taskcanceled">
<td>Canceled</td>
<td width="#echo $graphWidth + 5#"><img src="$util.themePath('images/1px.gif')" width="#echo $increment * $numCanceled#" height="15" class="graphrow" alt="graph row"/></td>
<td>$numCanceled</td>
</tr>
</table>
#include "includes/footer.chtml"
|