<% menu :events %> <% atom_link_header(space, Event.new) %> <%= content_for :headers do%> <%= javascript_include_tag 'jquery.timeentry','jquery.mousewheel','jquery.filestyle', 'user_filter' %> <%= javascript_include_tag 'jquery.jeditable', 'jquery.wysiwyg', 'jquery.jeditable.wysiwyg', 'jquery.filestyle', 'jquery.fcbkcomplete' %> <%= javascript_include_tag 'jquery.vcc' %> <%= stylesheet_link_tag "fcbkcomplete", :media => "screen, projection" %> <%= stylesheet_link_tag "jquery.wysiwyg", :media => "screen, projection" %> <%end%> <%= content_for :javascript do%> <%= render :partial => 'events_javascript.js' %> $('#event_views img.tooltip_num_views').qtip({ content: '<%= escape_javascript(t("tooltip.num_views")) %>', position: {adjust: { screen: true }}, show: 'mouseover', hide: { when: 'mouseout', fixed: true }, style: 'mystyle' }); <% end %> <%= content_for :sidebar do %>
<%if !logged_in?%>
<%= link_to ("" + t('register.and_participate') + "").html_safe,signup_path("user[special_event_id]" => (@event.id).to_s) ,:class => "register_link big_button orange_button"%>

<%= t('register.and_participate_description_with_login', :url => login_path ).html_safe %>

<%elsif event.authorize?(:update, :to => current_user) %> <%= render :partial => "actions" %> <%elsif event.is_happening_now? %>

<%= t('event.note.not_organizer_during').html_safe %>

<%elsif event.past?%>

<%= t('event.note.not_organizer_after', :date => @event.start_date.strftime("%d %b %Y")).html_safe %>

<%elsif @event.start_date%>

<%= t('event.note.not_organizer_before', :date => @event.start_date.strftime("%d %b %Y")).html_safe %>

<%else%>

<%= t('event.note.not_organizer_no_date').html_safe %>

<%end%> <%if params[:edit_comment]%> <%= render(:partial => "posts/edit_post", :locals => { :post => Post.find(params[:edit_comment]) }) if @space.authorize?([:create, :content],:to => current_user) %> <%elsif params[:show_streaming] || params[:show_participation]%> <%=render :partial => "video_online"%> <%= render :partial => 'participants' %> <%else%> <%= render :partial => 'participants' %> <%end%> <%if event.authorize?(:update, :to => current_user) %> <%= #render :partial => "change_logo" %> <%= #render :partial => "import_icalendar" %> <%end%>
<%=@event.unique_pageviews%><%=t('statistics.event_views')%> <%=image_tag("icons/help.png",:title=>"",:size=>"16x16",:class=>"tooltip_num_views icon",:style=>"cursor:pointer")%>
<%end%> <%= content_for :search do %> <%= render :partial => 'search/form' %> <%end%>
<%= render :partial => "event_card_show" %>
<%= content_for :javascript do%> //It is compulsory for this code to be here, because of a bug in the fcbkcomplete that if you apply it //when the html is not shown it does not work properly, with will be set to 0px $("#speakers_name_edit").livequery(function () { $(this).fcbkcomplete({ cache: true, filter_case: false, filter_hide: true, firstselected: true, filter_selected: true, maxshownitems: 4, newel: true }); }); <%end%>