debian-koji/www/kojiweb/fileinfo.html.j2
Mike McLean 4e407c7f1b fixes
2025-05-07 14:07:03 +02:00

61 lines
1.8 KiB
Django/Jinja

#include "includes/header.html.j2"
#if rpm
<h4>Information for file <a href="fileinfo?rpmID={{ rpm.id }}&amp;filename={{ file.name|urlencode }}">{{ file.name }}</a></h4>
#elif archive
<h4>Information for file <a href="fileinfo?archiveID={{ archive.id }}&amp;filename={{ file.name|urlencode }}">{{ file.name }}</a></h4>
#endif
<table>
<tr>
<th>Name</th><td>{{ file.name }}</td>
</tr>
#if rpm
<tr>
<th>Digest ({{ file.digest_algo }})</th><td>{{ file.digest }}</td>
</tr>
#endif
<tr>
<th>Size</th><td><span title="{{ util.formatThousands(file.size) }}">{{ util.formatNatural(file.size) }}</span></td>
</tr>
#if 'mtime' in file and file.mtime
<tr>
<th>Modification time</th><td>{{ util.formatTimeLong(file.mtime) }}</td>
</tr>
#endif
#if 'user' in file and file.user
<tr>
<th>User</th><td>{{ file.user }}</td>
</tr>
#endif
#if 'group' in file and file.group
<tr>
<th>Group</th><td>{{ file.group }}</td>
</tr>
#endif
#if 'mode' in file and file.mode
<tr>
<th>Mode</th><td class="rpmheader">{{ util.formatMode(file.mode) }}</td>
</tr>
#endif
#if rpm
<tr>
<th>Flags</th>
<td>
#for flag in util.formatFileFlags(file.flags)
{{ flag }}<br/>
#endfor
</td>
</tr>
<tr>
#set epoch = ( rpm.epoch ~ ':' if rpm.epoch is not none else '')
<th>RPM</th><td><a href="rpminfo?rpmID={{ rpm.id }}">{{ rpm.name }}-{{ epoch }}{{ rpm.version }}-{{ rpm.release }}.{{ rpm.arch }}.rpm</a></td>
</tr>
#elif archive
<tr>
<th>Archive</th><td><a href="archiveinfo?archiveID={{ archive.id }}">{{ archive.filename }}</a></td>
</tr>
#endif
</table>
#include "includes/footer.html.j2"