<%= content_for :javascript do%> <%= render :partial => 'posts/collapse_expand', :locals => { :selected_post => selected_post, :post => post } %> <%end%>
<%= div_for(post, :class=>"post_moved") do%>
<%= raw(link_logo(post.author, :size => 22, :url => user_path(post.author), :title=>post.author.name)) %>
<%=link_to(image_tag("icons/exclamation.png", :alt => "Report Spam",:class=>"icon"), spam_lightbox_space_post_path(@space,post),{:name => post.id, :class => 'spam_link', :title => t('spam.report')}) if logged_in? && post.spam != true%> <%=link_to(image_tag("icons/pencil.png", :alt => "edit comment",:class=>"icon"), get_edit_route(post),{:name => post.id, :class => 'edit_post_link', :title => t('comment.edit')}) if post.authorize?(:update, :to => current_user)%> <%=link_to(image_tag("icons/cancel.png", :alt => "delete",:class=>"icon"), space_post_path(@space,post), {:method => :delete, :class => 'delete_post_link', :title => t('comment.delete'), :confirm => t('delete.confirm', :element => t('comment.by', :author => post.author.name))}) if post.authorize?(:delete, :to => current_user)%>
  • <%= link_to(post.author.name, user_path(post.author),:class=>"unified_user") %>
  • <%if post.text.size < 120 %>
  • <%=sanitize(auto_link(post_format(post.text)))%>
  • <%else%>
  • <%=sanitize(truncate(auto_link(post.text),:length=>120))%> <%=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%>
<%end%>