summaryrefslogtreecommitdiffstats
path: root/repotmpl/rss.kid
blob: fcfdab9a6f89d1af6a3e0a761d804a250935766a (plain)
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
<?xml version="1.0" ?>
<?python
import time
def ymd(stamp):
    return time.strftime('%Y-%m-%d', time.localtime(int(stamp)))
    
?>
<div xmlns:py="http://purl.org/kid/ns#">
	<p>
		<strong>Package:</strong> <span py:replace="pkg_data['name']"/><br/>
		<strong>Summary:</strong> <span py:replace="pkg_data['summary']"/>
	</p>
	<p>
		<strong>Description:</strong><br/>
		<span py:replace="pkg_data['description']"/>
	</p>
	<h3>Changes:</h3>
	<table border="0" cellpadding="0" cellspacing="5">
        <tr py:for="(e, v, r, a, built, size, loc, author, log, added) in pkg_data['rpms']">
            <td valign="top"><a href="${'%s/%s' % (url, loc)}" 
              py:content="'%s-%s-%s.%s' % (pkg_data['name'], v, r, a)"/>
              [<span style="white-space: nowrap" py:content="size"/>]</td>
            <td valign="top" py:if="log">
              <strong>Changelog</strong>
              by <span py:content="'%s (%s)' % (author, ymd(added))"/>:
              <pre style="margin: 0pt 0pt 5pt 5pt" py:content="log"/>
            </td>
            <td valign="top" py:if="not log">
            	<em>(no changelog entry)</em>
            </td>
        </tr>
    </table>
</div>