<%=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(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)%>