- <%=link_to_function(image_tag("icons/upload.png"), :class=>"upload_attachment", :id=>agenda_entry.id) if @event.authorize?(:update, :to => current_user) || agenda_entry.authorize?(:update, :to => current_user)%>
- <%=link_to(image_tag("icons/clock.png", :alt=>t('edit_hours'), :title => t('edit_hours')), edit_space_event_agenda_path(@space, @event, :day => agenda_entry.event_day), :class=>"edit_hours_entry", :name=>agenda_entry.id.to_s) if (@event.authorize?(:update, :to => current_user) || agenda_entry.authorize?(:update, :to => current_user)) && agenda_entry.can_edit_hours? %>
- <%=link_to(image_tag("icons/pencil.png", :alt => t('edit'), :title => t('edit')) , edit_space_event_agenda_agenda_entry_path(@space, @event, agenda_entry, :one_step => true), :class=>"edit_entry", :name=>agenda_entry.id.to_s) if @event.authorize?(:update, :to => current_user) || agenda_entry.authorize?(:update, :to => current_user) %>
- <%=link_to(image_tag("icons/cancel.png", :alt => t('delete.one')) , space_event_agenda_agenda_entry_path(@space, @event, agenda_entry), :method => :delete, :title => t('agenda.del_entry'), :confirm => t('delete.confirm', :element=>agenda_entry.title)) if (@event.authorize?(:update, :to => current_user) || agenda_entry.authorize?(:delete, :to => current_user)) && !agenda_entry.is_happening_now? %>
<%=sanitize(agenda_entry.title) %>
<%if agenda_entry.recording?%>
<%if !agenda_entry.video_thumbnail.present?%>
<%=link_to_function image_tag("default_background.jpg", :alt => t('agenda.entry.video')),'request_video('+agenda_entry.id.to_s+')', :class=>"entry_video_link" %>
<%else%>
<%=link_to_function image_tag(agenda_entry.video_thumbnail, :alt => t('agenda.entry.video')),'request_video('+agenda_entry.id.to_s+')', :class=>"entry_video_link" %>
<%end%>
<%elsif @event.authorize?(:update, :to => current_user) && @event.show_recording_box? && (@event.uses_conference_manager? && agenda_entry.session_status!=AgendaEntry::SESSION_STATUS[:published]) && agenda_entry.video_type!=AgendaEntry::VIDEO_TYPE.index(:none)%>
<%=render :partial=>"agenda_entries/recording_box"%>
<%end%>
-
<%=entry_speakers(agenda_entry)%>
- <%=sanitize(simple_format(agenda_entry.description)) %>
<% agenda_entry.attachments.each do |a| %>
<%=image_tag(logo_image_path(a, :size => a.thumbnail_size)) %>
<%= attachment_link(a) %>
<%end %>
<%=link_to(("Video List"), space_event_path(@space, @event, :show_video => agenda_entry.id), {:id=>"view_recordings",:class=>"grey_button basic_button",:title => t('event.view_related_rec')}) %>
<%if agenda_entry.video_type==AgendaEntry::VIDEO_TYPE.index(:automatic)%>
<%=link_to(("Edit video"), space_event_path(@space, @event, :edit_video => agenda_entry.id), {:id=>"view_recordings",:class=>"grey_button basic_button",:title => t('video.edit')}) if Time.now > Time.parse("2010-12-21") %>
<%end%>
<%=link_to_function 'Hide video','hide_video('+agenda_entry.id.to_s+')', :class=>"hide_video_link grey_button basic_button" %>