<%=link_to(image_tag("icons/exclamation.png", :alt => t('spam.report'),:class=>"icon"), spam_lightbox_space_post_path(@space,post),{:name => post.id, :class => 'spam_link', :title => t('spam.report')}) if logged_in? && post.spam == false%>
<%=link_to(image_tag("icons/pencil.png", :alt => t('comment.edit')), space_event_path(@space, @event, :edit_comment=>post.id),{: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 => t('comment.delete')), space_post_path(@space, post),{:method => :delete,:name => post.id, :class => 'delete_post_link', :title => t('comment.delete'),:confirm => t('delete.confirm', :element => t('comment.by', :author => post.author.name))}) if post.authorize?(:update, :to => current_user)%>
- <%= link_to(post.author.name, :url => user_path(post.author)) %> <%if post.text.size < 100%>
- <%=sanitize(auto_link(post.text))%> <%else%>
-
<%=sanitize(auto_link(simple_format(post.text)))%>
-
<%for attachment in post.attachments%>
<%=image_tag(logo_image_path(attachment, :size => '64'))%><%end%>
- <%=attachment.filename%>
- <%=attachment.get_size()%> <%= link_to( t('download_file') , space_attachment_path(@space,attachment, :format => attachment.format))%>