<% last ||= false -%> <% show_author ||= false -%>
post_cloud <%='last' if last%>">
<% if extended %>
  • <%=link_to(image_tag("icons/exclamation.png",:class=>"icon",:alt => t('spam.report')), spam_lightbox_space_post_path(thread.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",:class=>"icon",:alt => t('reply') ), space_post_path(thread.space,thread,:reply_to =>thread),{:name => thread.id, :class => 'reply_to_link', :title => t('comment.add')}if thread.space.authorize?([:create, :content],:to => current_user)%>
  • <%=link_to image_tag("icons/pencil.png",:class=>"icon", :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",:class=>"icon", :alt => t('delete.one') ), space_post_path(thread.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)%>
<% end %>
  • <%=image_tag("icons/comments.png",:class=>"icon", :title => t('post.home.one', :space=>thread.space.name))%> <% if show_author and thread.author -%> <%=link_to thread.author.name,user_path(thread.author), { :class=>"unified_user" } %>: <% end -%> <%=link_to first_words(thread.title, 30), space_post_path(thread.space,thread), { :class=>"unified_posts" } if thread.space.authorize?([:read, :content],:to => current_user)%> <%if thread.attachments.any?%> <%= image_tag "icons/attach.png", { :title => thread.attachments.first.filename, :class=>"icon" } %> <%end%> <%= t('updated_time_ago', :time => time_ago_in_words(thread.updated_at)) %>
  • <%=first_words(thread.text,75)%>
    <%=render :partial => "posts/parent_post",:locals => { :post => thread, :selected_post => false}%>