d0b9d3d2fd144bccfc4e3d5504284033d1928925
[zzz-spline-forum.git] / splinext / forum / templates / forum / front_page.mako
1 <%page args="update" />
2 <%namespace name="userlib" file="/users/lib.mako" />
3
4 <div class="frontpage-update">
5     <div class="header">
6         <div class="category">
7             <a href="${update.source.link}"><img src="${h.static_uri('spline', "icons/{0}.png".format(update.source.icon))}" alt=""> ${config['spline.site_title']} news</a>:
8         </div>
9         <div class="date">${update.post.posted_time}</div>
10         <div class="title">
11             <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
12                 ${update.post.thread.subject}
13             </a>
14         </div>
15     </div>
16     <div class="avatar">
17         <a href="${url(controller='users', action='profile', id=update.post.author.id, name=update.post.author.name)}">
18             ${userlib.avatar(update.post.author, size=48)}
19         </a>
20     </div>
21     <div class="content has-comments">${update.post.content|n}</div>
22     <div class="comments">
23         <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
24             ${update.post.thread.post_count - 1} comment${'' if update.post.thread.post_count == 2 else 's'}
25         </a>
26     </div>
27 </div>