debian-koji/www/kojiweb/rpminfo.chtml
2007-02-14 11:25:01 -05:00

170 lines
5.4 KiB
Text

#from kojiweb import util
#import time
#include "includes/header.chtml"
#set $epoch = ($rpm.epoch != None and $str($rpm.epoch) + ':' or '')
<h4>Information for RPM $rpm.name-$epoch$rpm.version-$rpm.release.${rpm.arch}.rpm</h4>
<table>
<tr>
<th>ID</th><td>$rpm.id</td>
</tr>
<tr>
<th>Name</th><td><a href="packageinfo?packageID=$build.package_id">$rpm.name</a></td>
</tr>
<tr>
<th>Version</th><td><a href="buildinfo?buildID=$build.id">$rpm.version</a></td>
</tr>
<tr>
<th>Release</th><td>$rpm.release</td>
</tr>
<tr>
<th>Epoch</th><td>$rpm.epoch</td>
</tr>
<tr>
<th>Arch</th><td>$rpm.arch</td>
</tr>
<tr>
<th>Size</th><td>$rpm.size</td>
</tr>
<tr>
<th>Payload Hash</th><td>$rpm.payloadhash</td>
</tr>
<tr>
<th>Build Time</th><td>$time.strftime('%Y-%m-%d %H:%M:%S', $time.gmtime($rpm.buildtime)) GMT</td>
</tr>
#if $builtInRoot
<tr>
<th>Buildroot</th><td><a href="buildrootinfo?buildrootID=$builtInRoot.id">$builtInRoot.tag_name-$builtInRoot.id-$builtInRoot.repo_id</a></td>
</tr>
#end if
<tr>
<th>Provides</th>
<td class="container">
#if $len($provides) > 0
<table class="nested">
#for $dep in $provides
<tr>
<td>$util.formatDep($dep.name, $dep.version, $dep.flags)</td>
</tr>
#end for
</table>
#else
No Provides
#end if
</td>
</tr>
<tr>
<th>Requires</th>
<td class="container">
#if $len($requires) > 0
<table class="nested">
#for $dep in $requires
<tr>
<td>$util.formatDep($dep.name, $dep.version, $dep.flags)</td>
</tr>
#end for
</table>
#else
No Requires
#end if
</td>
</tr>
<tr>
<th>Obsoletes</th>
<td class="container">
#if $len($obsoletes) > 0
<table class="nested">
#for $dep in $obsoletes
<tr>
<td>$util.formatDep($dep.name, $dep.version, $dep.flags)</td>
</tr>
#end for
</table>
#else
No Obsoletes
#end if
</td>
</tr>
<tr>
<th>Conflicts</th>
<td class="container">
#if $len($conflicts) > 0
<table class="nested">
#for $dep in $conflicts
<tr>
<td>$util.formatDep($dep.name, $dep.version, $dep.flags)</td>
</tr>
#end for
</table>
#else
No Conflicts
#end if
</td>
</tr>
<tr>
<th id="filelist">Files</th>
<td class="container">
#if $len($files) > 0
<table class="nested data-list">
<tr>
<td class="paginate" colspan="2">
#if $len($filePages) > 1
<form class="pageJump">
Page:
<select onchange="javascript: window.location = 'rpminfo?fileStart=' + this.value * $fileRange + '$util.passthrough($self, 'rpmID', 'fileOrder')#filelist';">
#for $pageNum in $filePages
<option value="$pageNum"#if $pageNum == $fileCurrentPage then ' selected' else ''#>#echo $pageNum + 1#</option>
#end for
</select>
</form>
#end if
#if $fileStart > 0
<a href="rpminfo?fileStart=#echo $fileStart - $fileRange #$util.passthrough($self, 'rpmID', 'fileOrder')#filelist">&lt;&lt;&lt;</a>
#end if
<strong>#echo $fileStart + 1 # through #echo $fileStart + $fileCount # of $totalFiles</strong>
#if $fileStart + $fileCount < $totalFiles
<a href="rpminfo?fileStart=#echo $fileStart + $fileRange#$util.passthrough($self, 'rpmID', 'fileOrder')#filelist">&gt;&gt;&gt;</a>
#end if
</td>
</tr>
<tr class="list-header">
<th><a href="rpminfo?fileOrder=$util.toggleOrder($self, 'name', 'fileOrder')$util.passthrough($self, 'rpmID')#filelist">Name</a> $util.sortImage($self, 'name', 'fileOrder')</th>
<th><a href="rpminfo?fileOrder=$util.toggleOrder($self, 'size', 'fileOrder')$util.passthrough($self, 'rpmID')#filelist">Size</a> $util.sortImage($self, 'size', 'fileOrder')</th>
</tr>
#for $file in $files
<tr class="$util.rowToggle($self)">
<td><a href="fileinfo?rpmID=$rpm.id&filename=$file.name">$file.name</a></td><td>$file.size</td>
</tr>
#end for
</table>
#else
No files
#end if
</td>
</tr>
<tr>
<th>Component&nbsp;of</th>
<td class="container">
#if $len($buildroots) > 0
<table class="nested data-list">
<tr class="list-header">
<th>Buildroot</th><th>State</th><th>Update?</th>
</tr>
#for $buildroot in $buildroots
<tr class="$util.rowToggle($self)">
<td><a href="buildrootinfo?buildrootID=$buildroot.id">$buildroot.tag_name-$buildroot.id-$buildroot.repo_id</a></td>
<td>$util.imageTag($util.brStateName($buildroot.state))</td>
#set $update = $buildroot.is_update and 'yes' or 'no'
<td class="$update">$util.imageTag($update)</td>
</tr>
#end for
</table>
#else
No Buildroots
#end if
</td>
</tr>
</table>
#include "includes/footer.chtml"