%= content_for :headers do %>
<%= javascript_include_tag 'jquery.filestyle','jquery.jcrop' %>
<%end %>
-
<%=link_to(image_tag("icons/exclamation.png", :alt => t('spam.report'),:class=>"icon"), spam_lightbox_space_event_path(@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(@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(@space, event),{:method => :delete, :title => t('delete.one'),:confirm => t('delete.confirm', :element => event.title)}) if event.authorize?(:delete, :to => current_user) && !event.is_happening_now?%>
<%if @event.logo %>
<%=logo(@event.logo, {:size => 64, :title=>t('logo.click_to_change')}).html_safe %>
<%elsif @event.has_date? %>
<%= sanitize(event.start_date.strftime("%d")) %>
<%= localize(event.start_date, :format => "%b") %>
<%= event.get_formatted_hour %>
<%else%>
<%end %>
<%=link_to sanitize(highlight(event.title,@query)), space_event_path(@space, @event),:class=>"unified_event" %> <%=t('created_time_ago', :time => sanitize(time_ago_in_words(@event.created_at))) %>
<%if @event.agenda.has_past_session_with_video? && params[:show_video]%>
<%=link_to t('event.recording.cloud_back'), space_event_path(@space, @event, :show_agenda => true),:class=>"cloud_button" %>
<%elsif @event.agenda.has_past_session_with_video?%>
<%=link_to t('event.recording.cloud'),space_event_path(@space, @event, :show_video => @event.agenda.first_video_entry_id),:class=>"cloud_button"%>
<%end%>
-
<%= t('when') %>: <%=@event.get_formatted_date %>
<%if event.location %>
-
<%= t('where') %>: <%=sanitize(@event.location) %>
<%end %>
-
<%= t('organizer') %>:<%isfirst=true %>
<%event.organizers.each do |org| %>
<%if isfirst %>
<%isfirst=false %>
<%else %>
,<%end %>
<%=link_to(highlight(org.name,@query),user_path(org),:class=>"unified_user")%>
<%end %>
-
<%if @event.web_interface? %>
<%if isfirst %>
<%isfirst=false %>
<%else %>
,
<%end %>
<%unless @event.is_happening_now? || (@event.is_in_person? && !@event.past?) %>
<%=t('event.view_participation')%>
<%else%>
<%=link_to t('event.view_participation'), space_event_path(@space, @event, :show_participation => true)%>
<%end%>
<%end%>
<%if @event.agenda.has_past_session_with_video?%>
<%if isfirst %>
<%isfirst=false %>
<%else %>
,
<%end %>
<%=link_to ("" + t('event.view_recordings') + ""), space_event_path(@space, @event, :show_video => @event.agenda.first_video_entry_id)%>
<%elsif @event.agenda.has_entries_with_video? %>
,<%=t('event.view_recordings')%>
<%end%>
<%if event.uses_conference_manager? && !event.future? && (event.start_date > Date.parse("12/21/2010")) %>
<%end%>
<%if @event.future?%>
<%= render :partial => "connection_info"%>
<%end%>
<%if @event.agenda.present? %>
<%unless params[:show_video] || params[:edit_video] || params[:show_streaming] || params[:show_participation] %>
<%= render :partial => "event_description" %>
<%end %>
<%end %>