Support stuff-other-than-updates.
[zzz-spline-frontpage.git] / splinext / frontpage / templates / front_page / git.mako
1 <%page args="update" />
2
3 <div class="frontpage-update">
4     <div class="header">
5         <div class="category">
6             <a href="${update.source.link}"><img src="${h.static_uri('spline', "icons/{0}.png".format(update.source.icon))}" alt=""> ${update.source.title}</a>:
7         </div>
8         <div class="date">${update.time}</div>
9         <div class="title">${update.tag}</div>
10     </div>
11     <div class="content">
12         <table class="frontpage-repository striped-rows">
13             <% last_repo = None %>\
14             % for commit in update.log:
15             % if commit.repo != last_repo:
16             <tr class="frontpage-repository-header">
17                 <th colspan="4">${commit.repo}</th>
18             </tr>
19             % endif
20
21             <tr>
22                 <td class="hash"><a href="${update.source.gitweb}?p=${commit.repo}.git;a=commit;h=${commit.hash}">${commit.hash}</a></td>
23                 <td class="author">
24                     <%! import hashlib %>\
25                     <img src="http://www.gravatar.com/avatar/${hashlib.md5(commit.email).hexdigest()}?s=16d=identicon" alt="">
26                     ${commit.author}
27                 </td>
28                 <td class="subject">${commit.subject}</td>
29                 <td class="time">${commit.time}</td>
30             </tr>
31             <% last_repo = commit.repo %>\
32             % endfor
33         </table>
34     </div>
35 </div>