Big ol refactor: make sources into first-class objects.
[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">${commit.author}</td>
24                 <td class="subject">${commit.subject}</td>
25                 <td class="time">${commit.time}</td>
26             </tr>
27             <% last_repo = commit.repo %>\
28             % endfor
29         </table>
30     </div>
31 </div>