diff options
author | Remi Collet <fedora@famillecollet.com> | 2015-12-18 10:33:16 +0100 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2015-12-18 10:33:16 +0100 |
commit | 4638f990ceb4b314ce15ddfcfeeb638432273c95 (patch) | |
tree | 8acbc0379ef0919d13c85483dd3e5a517b6f8473 /repotmpl/rss.kid | |
parent | daef766c2a953e4db3e9a69cbff8bf7a67788f85 (diff) |
initial import
Diffstat (limited to 'repotmpl/rss.kid')
-rw-r--r-- | repotmpl/rss.kid | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/repotmpl/rss.kid b/repotmpl/rss.kid new file mode 100644 index 00000000..fcfdab9a --- /dev/null +++ b/repotmpl/rss.kid @@ -0,0 +1,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> |