<%page args="update" />
<%namespace name="userlib" file="/users/lib.mako" />

<div class="frontpage-update">
    <div class="header">
        <div class="category">
            <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>:
        </div>
        <div class="date">${update.post.posted_time}</div>
        <div class="title">
            <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
                ${update.post.thread.subject}
            </a>
        </div>
    </div>
    <div class="avatar">
        <a href="${url(controller='users', action='profile', id=update.post.author.id, name=update.post.author.name)}">
            ${userlib.avatar(update.post.author, size=48)}
        </a>
    </div>
    <div class="content has-comments">${update.post.content}</div>
    <div class="comments">
        <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
            ${update.post.thread.post_count - 1} comment${'' if update.post.thread.post_count == 2 else 's'}
        </a>
    </div>
</div>

<%page args="update" />
<%namespace name="userlib" file="/users/lib.mako" />

<div class="frontpage-update">
    <div class="header">
        <div class="category">
            <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>:
        </div>
        <div class="date">${update.post.posted_time}</div>
        <div class="title">
            <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
                ${update.post.thread.subject}
            </a>
        </div>
    </div>
    <div class="avatar">
        <a href="${url(controller='users', action='profile', id=update.post.author.id, name=update.post.author.name)}">
            ${userlib.avatar(update.post.author, size=48)}
        </a>
    </div>
    <div class="content has-comments">${update.post.content|n}</div>
    <div class="comments">
        <a href="${url(controller='forum', action='posts', forum_id=update.post.thread.forum.id, thread_id=update.post.thread.id)}">
            ${update.post.thread.post_count - 1} comment${'' if update.post.thread.post_count == 2 else 's'}
        </a>
    </div>
</div>

Stop escaping HTML on the front page.
Stop escaping HTML on the front page.
