1 <%doc>Copyright (C) 2009-2010 HDE, Inc.</%doc>
2 <%inherit file="../include/common.part" />
5 from karesansui.lib.template import view_autounit, view_megaunit
6 from karesansui.lib.const import DEFAULT_DECIMAL_POINT
11 if type(text) == types.FloatType or \
12 type(text) == types.IntType or \
13 type(text) == types.StringType or \
14 type(text) == types.UnicodeType:
15 return time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(float(text)))
20 <% pkg = rpm_detail[pkg_name] %>
22 <div id="updater_detail_display">
23 <table class="detail-contents">
25 <th>${_('General Information')}</th>
26 <td class="detail-separator">
27 <img src="${ctx.homepath}/static/images/table-space.gif">
30 <table cellspacing="0" class="border detail-sub-contents">
33 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
34 <td><pre>${pkg['name'] | h}</pre></td>
37 <th>${_('Version')}</th>
38 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
39 <td><pre>${pkg['version'] | h}</pre></td>
42 <th>${_('Release')}</th>
43 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
44 <td><pre>${pkg['release'] | h}</pre></td>
47 <th>${_('Summary')}</th>
48 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
49 <td><pre>${pkg['summary'] | h}</pre></td>
53 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
54 <td><pre>${pkg['arch'] | h}</pre></td>
58 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
59 <td><pre>${pkg['url'] | h}</pre></td>
62 <th>${_('License')}</th>
63 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
64 <td><pre>${pkg['license'] | h}</pre></td>
67 <th>${_('Vendor')}</th>
68 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
69 <td><pre>${pkg['vendor'] | h}</pre></td>
72 <th>${_('Group')}</th>
73 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
74 <td><pre>${pkg['group'] | h}</pre></td>
80 <tr><td colspan='3'><div class='detail-space'/></td></tr>
83 <th>${_('Details')}</th>
84 <td class="detail-separator">
85 <img src="${ctx.homepath}/static/images/table-space.gif">
88 <table cellspacing="0" class="border detail-sub-contents">
90 <th>${_('Size')} (B)</th>
91 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
92 <td><span>${pkg['size'] | h}</span><span class="dark-text autounit">(${view_autounit(pkg['size'], decimal_point=DEFAULT_DECIMAL_POINT, print_unit=True)})</span></td>
95 <th>${_('Build Host')}</th>
96 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
97 <td><pre>${pkg['buildhost'] | h}</pre></td>
101 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
102 <td><pre>${pkg['os'] | h}</pre></td>
105 <th>${_('Description')}</th>
106 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
107 <td><pre>${pkg['description'] | h}</pre></td>
110 <th>${_('Build Date')}</th>
111 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
112 <td><pre>${pkg['buildtime'] | time_format}</pre></td>
115 <th>${_('Install Date')}</th>
116 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
117 <td><pre>${pkg['installtime'] | time_format}</pre></td>
120 <th>${_('Requires')}</th>
121 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
123 % for require in pkg['requires']:
124 <pre>${require | h}</pre>
129 <th>${_('Packager')}</th>
130 <td class="detail-separator"><img src="${ctx.homepath}/static/images/table-space.gif" alt="" /></td>
132 % for package in pkg['packager']: