## 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
$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)