<div class="comment avatar-container">
  <div class="author">
    <h6 class="author"><%= link_to h(post.author), :controller => "user", :action => "show", :id => post.creator_id %></h6>
    <span class="date"><%= link_to timeago(post.created_at), :action => "show", :id => post.id %></span>
    <% if post.creator.has_avatar? then %>
      <div class="forum-avatar-container"> <%= avatar(post.creator, post.id) %> </div>
    <% end %>
  </div>
  <div class="content">
    <% if post.is_parent? %>
      <h6><%= post.title %></h6>
    <% else %>
      <h6 class="response-title"><%= post.title %></h6>
    <% end %>
    <div class="body">
      <%= format_inlines(format_text(post.body), post.id) %>
    </div>
    <% if not @preview then %>
    <div class="post-footer" style="clear: left;">
      <ul class="flat-list pipe-list">
      <% if @current_user.has_permission?(post, :creator_id) %>
        <li> <%= link_to t('.edit'), :action => "edit", :id => post.id %>
        <li> <%= link_to t('.delete'), {:action => "destroy", :id => post.id}, :confirm => t('.delete_confirm'), :method => :post %>
      <% end %>
      <% if post.is_parent? && @current_user.is_mod_or_higher? %>
        <% if post.is_sticky? %>
          <li> <%= link_to t('.unstick'), {:action => "unstick", :id => post.id}, :method => :post %>
        <% else %>
          <li> <%= link_to t('.stick'), {:action => "stick", :id => post.id}, :method => :post %>
        <% end %>
        <% if post.is_locked? %>
          <li> <%= link_to t('.unlock'), {:action => "unlock", :id => post.id}, :method => :post %>
        <% else %>
          <li> <%= link_to t('.lock'), {:action => "lock", :id => post.id}, :method => :post %>
        <% end %>
      <% end %>
      <li> <%= link_to_function t('.quote'), "Forum.quote(#{post.id})" %>
      </ul>
    </div>
    <% end %>
  </div>
</div>
