post_cloud <%= 'last' if last %>">
<% # TODO Rails 3 =begin <%if defined? in_home && in_home % <% end % =end %>
    <%=link_to(image_tag("icons/exclamation.png", :alt => t('spam.report')), spam_lightbox_space_post_path(@space,thread),{:name => thread.id, :class => 'spam_link', :title => t('spam.report')}) if logged_in? && thread.spam != true%>
  • <%=link_to image_tag("icons/comments-add.png",:alt => t('reply') ), space_posts_path(@space,:reply_to =>thread),{:name => thread.id, :class => 'reply_to_link', :title => t('comment.add')}if @space.authorize?([:create, :content],:to => current_user)%>
  • <%=link_to image_tag("icons/pencil.png", :alt => t('edit')), get_edit_route(thread),{:name => thread.id, :class => 'edit_post_link', :title => t('edit')} if thread.authorize?(:update, :to => current_user)%>
  • <%=link_to image_tag("icons/cancel.png", :alt => t('delete.one') ), space_post_path(@space,thread),{ :class => 'delete_thread', :confirm => t('delete.confirm', :element => thread.title), :method => :delete, :title => t('delete.one') } if thread.authorize?(:delete, :to => current_user)%>
  • <%=link_to(thread.author.name,user_path(thread.author),:class=>"unified_user")%>: <%=link_to(truncate(thread.title,:length=>80), space_post_path(@space,thread),:class=>"unified_posts") if @space.authorize?([:read, :content],:to => current_user)%> <%if has_attachments(thread)%> <%=image_tag("icons/attach.png",:title=>attachment_name(thread),:class=>"icon")%> <%end%> <%if !thread.children.empty?%> <%=link_to_function t('thread.comments', :children => thread.children.size), "extend_thread(#{thread.id})", :class => "extend_thread", :style => "#{'display:none' if extended}"%> <%end%> <%= t('updated_time_ago', :time => time_ago_in_words(thread.updated_at)) %>
  • <%=truncate(strip_tags(thread.text),:length=>100)%> <%=link_to_function t('more_arrows'), "extend_thread(#{thread.id})", :class => "extend_thread", :style => "#{'display:none' if extended}"%>
    <%=render :partial => "posts/parent_post",:locals => { :post => thread, :selected_post => false}%>
<% # TODO Rails 3 =begin <% if defined? in_home && in_home %
<%=truncate(thread.text,:length=> 70)%
<% end %
=end %>
<%unless thread.children.size<4 %>
<%= t('thread.show_last_comment', :size => thread.three_last_comment().size, :children => thread.children.size) %> <%=link_to(t('comment.show_all'), space_post_path(@space,thread))if @space.authorize?([:read, :content],:to => current_user)%> <%end%>-->
<%end%>
"> <%for comment in thread.three_last_comment()%> <%=render :partial => "posts/post" , :locals => { :post => comment, :selected_post => false}%> <%end%>
<%=link_to_function t('collapse'), "collapse_thread(#{thread.id})", :class => "collapse_thread", :style => "#{'display:none' unless extended}"%> | <%if @space.authorize?([:create, :content],:to => current_user)%> <%=link_to t('comment.add_new'), space_posts_path(@space,:reply_to =>thread),{:name => thread.id, :class => 'reply_to_link', :title => t('reply')}%> <%end%>