%global>
from zblog.domain.blog import *
%global>
<%method post_summary>
<%args>
post
blog
%args>
<% post.headline %>
<% post.summary %>
<&SELF:post_topics, post=post, blog=blog &>
Posted <% post.datetime %> by <% post.user.fullname %>
More...
Comments (<% str(post.comment_count) %>)
%method>
<%method post_topics>
<%args>
post
blog
%args>
% sep = ''
% for topic in post.topics:
<% sep %><% topic.topic.keyword %>\
% sep = ', '
%
%method>
<%method view_post>
<%args>
post
%args>
<% post.body %>
%method>
<%method post_controls>
<%args>
post
%args>
<&|/components:securehref, href="javascript:edit_post({'post_id':'%s'})" % post.id, action=actions.EditPost(), post=post &>Edit&>
<&|/components:securehref, href="javascript:delete_post({'post_id':'%s'})" % post.id, action=actions.EditPost(), post=post &>Delete&>
%method>
<%method view_comment>
<%args>
comment
showpost=False
%args>
<% comment.subject %>
% if showpost:
posted to <% comment.post.headline %>
%
% if comment.parent:
in reply to <% comment.parent.subject %>
%
<% comment.body %>
Posted by <% comment.user.fullname %> on <% comment.datetime %>
reply
%method>