event_cloud <%='last' if last%>">
<%= div_for(event, :class=>"event_padding") do %>
<%= raw(link_logo(event.space, :size =>'w48', :url => space_path(event.space), :title=>event.space.name)) %>
- <%=link_to(image_tag("icons/exclamation.png", :alt => t('spam.report'),:class=>"icon"), spam_lightbox_space_event_path(event.space,event),{:name => event.id, :class => 'spam_link', :title => t('spam.report')}) if logged_in? && event.spam != true%>
- <%=link_to(image_tag("icons/pencil.png", :alt => t('event.edit'),:class=>"icon") , edit_space_event_path(event.space, event), :title => t('event.edit')) if event.authorize?(:update, :to => current_user) %>
- <%=link_to image_tag("./icons/cancel.png", :alt => t('delete.one'),:class=>"icon") , space_event_path(event.space, event),{:method => :delete, :title => t('delete.one'),:confirm => t('delete.confirm', :element => event.title)} if event.authorize?(:delete, :to => current_user) %>
<%=image_tag("icons/date.png",:class=>"icon", :title => t('event.home.one', :space=>event.space.name))%> <%=link_to sanitize(highlight(event.title,params[:query])), space_event_path(event.space, event),:class=>"unified_event"%> <%= t('updated_time_ago', :time => sanitize(time_ago_in_words(event.updated_at))) %>
- <%=event.get_formatted_date%>
<% if event.posts.size == 1 %>
- <%= t('event.has') + ' '%><%= link_to event.posts.size.to_s + ' ' + t('comment.one'), space_event_path(event.space,event) %>
<% elsif event.posts.size > 1 %>
- <%= t('event.has') + ' '%><%= link_to event.posts.size.to_s + ' ' + t('comment.other'), space_event_path(event.space,event) %>
<% end %>
<% end %>