<%= content_for :javascript do%> <%= render :partial => 'posts/collapse_expand', :locals => { :selected_post => selected_post, :post => post } %> <%end%> <%if @show_view%>
<%= raw(link_logo(post.author, :size => 32, :url => user_path(post.author), :title=>post.author.name)) %>
<%end%>
    <%if @show_view%>
  • <%= link_to(post.author.name, user_path(post.author),:class=>"unified_user")%> <%= t('updated_time_ago', :time => time_ago_in_words(post.updated_at)) %>
  • <%end%> <%if post.text.size < 500 || @show_view%>
  • <%=sanitize(auto_link(post_format(post.text)))%>
  • <%else%>
  • <%=sanitize(truncate(auto_link(post.text),:length=> 500))%> <%=link_to t('more_arrows'), "javascript:expand_post_#{post.id}()"%>
  • <%=sanitize(auto_link(post_format(post.text)))%>
  • <%end%>
  • <%for attachment in post.attachments%>
    <%=image_tag(logo_image_path(attachment, :size => '64'))%>
    • <%=attachment.filename%>
    • <%=attachment.get_size()%> <%= attachment_link(attachment, false)%>
    <%end%>