b967763320ec7830c63b5145d80a81faa19ff1ea
[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"><img src="${h.static_uri('spline', 'icons/newspapers.png')}" alt=""> ${config['spline.site_title']} news:</div>
7         <div class="title">
8             <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
9                 ${update.post.thread.subject}
10             </a>
11         </div>
12         <div class="date">${update.post.posted_time}</div>
13     </div>
14     <div class="avatar">
15         <a href="${url(controller='users', action='profile', id=update.post.author.id, name=update.post.author.name)}">
16             ${userlib.avatar(update.post.author, size=48)}
17         </a>
18     </div>
19     <div class="content">${update.post.content}</div>
20     <div class="comments">
21         <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
22             ${update.post.thread.post_count - 1} comment${'' if update.post.thread.post_count == 2 else 's'}
23         </a>
24     </div>
25 </div>