<#include "header.htm"/> <#import "../../macros/pagination.ftl" as pagination/> <#import "../../macros/presentation.ftl" as presentation/>

<#assign fp = posts.get(0)/>

${forum.name?html} » ${fp.subject?default("")} <#if topic.type == TOPIC_WIKI>(Wiki)

<#list posts as post> <#if (!(wikiTopic!false)) || (post_index == 0 || post.visibleInWiki) > <#assign user = users.get(post.userId)/> <#assign canEditCurrentMessage = (post.canEdit && topic.status != STATUS_LOCKED) || moderatorCanEdit/>
<#assign rankStr = rank.getRankTitle(user.rankId, user.totalPosts)/> <#if topic.type == TOPIC_WIKI>
${I18n.getMessage("PostShow.author")}: ${user.username?html}<#if rankStr?trim != "">, ${rankStr?html}
<#if topic.type == TOPIC_WIKI>
${post.formattedTime} <#if topic.status != STATUS_LOCKED && !readonly && topic.type != TOPIC_WIKI> <#if canEditCurrentMessage> <#if canRemove && ((post.userId == session.userId && session.userId != 1) || isModerator)> [Delete]
<#if (preformattedText?exists)> ${preformattedText} <#else> ${post.mobileText} <#if post.hasAttachments() && (canDownloadAttachments || attachmentsEnabled)> <#assign attachments = am.getAttachments(post.id, post.forumId)/> <#include "post_show_attachments_inc.htm"/>


<#if isModerator || isAdmin>
<@presentation.moderationImages/> <#include "post_show_thread_buttons.htm"/>
<#include "../highlighter_js.htm"/> <#include "bottom.htm"/>