{foreach from=$posts item=post}

{$post->title}

{$post->postedby}
{$post->description|clean_html|safe} {if $post->tags}
{str tag=tags}: {list_tags owner=$post->owner tags=$post->tags}
{/if}
{if $post->files} {foreach from=$post->files item=file} {/foreach}
{str tag=attachedfiles section=artefact.blog} {str tag=attachments section=artefact.blog} {$post->files|count}

{$file->title} ({$file->size|display_size}) - {str tag=Download section=artefact.file}

{$file->description}
{/if} {if $options.viewid && ($post->commentcount || $post->commentcount === '0')}
{if $post->commentcount > 0} {if !$options.editing}{/if} {str tag=Comments section=artefact.comment} ({$post->commentcount}) {if !$options.editing}{/if} {else} {if $post->allowcomments} {str tag=Comments section=artefact.comment} ({$post->commentcount}) {/if} {/if} {if $post->allowcomments} {str tag=addcomment section=artefact.comment} {/if}
{$post->comments->tablerows|safe}
{/if}
{/foreach}