## Velocity template for one blog post in a list of blog posts ## For use in a method that's looping through some sort of blog post list; this will format the display of each post ## Used currently for the monthly blog post view, the recent blog post view, and the blog-post macro ## ## Expected variables: ## $blog - the current blog post object ## $blogBody - the text of the current blog post ## $showIconBlock - whether the creator's display picture should be shown ## $trimmed - set to true if $blogBody is an excerpt instead of the entire text
#if($showIconBlock)
#userLogoBlock($blog.creator) $blog.title
#else $blog.title #end
$blogBody
#if ($!trimmed)

$action.getText("macros.blogpost.read.more")

#end #set($commentsNumber = $blog.comments.size()) #if($permissionHelper.canEdit($action.authenticatedUser, $blog)) #set($edits = true) #end #set($labels = $blog.getLabelsForDisplay($user)) #if(($commentsNumber > 0) || $edits || $labels.size() > 0)
#if($edits) $action.getText("edit.name") #if($commentsNumber > 0 || $labels.size() > 0)  ·  #end #end #if ($commentsNumber > 0) #if ($commentsNumber != 1) $action.getText("comment.plural", [$commentsNumber])#else $action.getText("comment.singular")#end #if($labels.size() > 0)  ·  #end #end #if ($labels.size() > 0) #end
#end