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

75 lines
2.1 KiB
Text

#from kojiweb import util
#include "includes/header.chtml"
<h4>Information for host $host.name</h4>
<table>
<tr>
<th>Name</th><td>$host.name</td>
</tr>
<tr>
<th>ID</th><td>$host.id</td>
</tr>
<tr>
<th>Arches</th><td>$host.arches</td>
</tr>
<tr>
<th>Capacity</th><td>$host.capacity</td>
</tr>
<tr>
<th>Task Load</th><td><a href="tasks?hostID=$host.id">$host.task_load</a></td>
</tr>
<tr>
#set $enabled = $host.enabled and 'yes' or 'no'
<th>Enabled?</th>
<td class="$enabled">
$util.imageTag($enabled)
#if 'admin' in $perms
#if $host.enabled
<span class="adminLink">(<a href="disablehost?hostID=$host.id">disable</a>)</span>
#else
<span class="adminLink">(<a href="enablehost?hostID=$host.id">enable</a>)</span>
#end if
#end if
</td>
</tr>
<tr>
#set $ready = $host.ready and 'yes' or 'no'
<th>Ready?</th><td class="$ready">$util.imageTag($ready)</td>
</tr>
<tr>
<th>Last Update</th><td>$util.formatTime($lastUpdate)</td>
</tr>
<tr>
<th>Channels</th>
<td>
#for $channel in $channels
<a href="channelinfo?channelID=$channel.id">$channel.name</a><br/>
#end for
</td>
</tr>
<tr>
<th>Active Buildroots</th>
<td class="container">
#if $len($buildroots) > 0
<table class="nested data-list">
<tr class="list-header">
<th>Buildroot</th><th>Created</th><th>State</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.formatTime($buildroot.create_event_time)</td>
<td>$util.imageTag($util.brStateName($buildroot.state))</td>
</tr>
#end for
</table>
#else
No buildroots
#end if
</td>
</tr>
</table>
#include "includes/footer.chtml"