<%= content_for :javascript do%> <%if @event.authorize?(:update, :to => current_user)%> $('#participation_url_value').editable('<%=space_event_path(@space, @event, :format => 'js')%>',{ method : 'PUT', tooltip : '<%= t('dblclick')%>', cancel : '<%= t('cancel')%>', onblur : 'ignore', submit : '<%= t('ok')%>', indicator : '', placeholder: '<%=t("event.participation.none")%> <%=link_to_function t('event.participation.add'), "edit_participation()", :id => "add_participation_link"%>', type : 'textarea', name : 'event[other_participation_url]', width : 635, height: 150, event : "dblclick", submitdata : {authenticity_token: "<%=form_authenticity_token()%>"}, }); $('#participation_url_value form input').livequery("blur",function(){ $('#edit_participation_icon').show(); }); edit_participation = function(){ $('#participation_url_value').dblclick(); }; <%end%> <%end%>
<%= link_to_function(image_tag("icons/pencil.png", :alt => t('edit'),:title=>t('event.participation.edit'), :class=>"icon" ), "edit_participation()", :id => "edit_participation_icon") if @event.authorize?(:update, :to => current_user) %>

<%=image_tag("down.png",:class=>"jqueryToggle")%><%=image_tag("down.png",:style=>"display:none",:class=>"jqueryToggle")%>
<%=t('event.video_part')%>: <%=@event.get_session_now.title if @event.has_session_now?%>

<%if !logged_in?%>

<%= t('register.and_participate_description') %>

<%= link_to "" + t('register.and_participate') + "",signup_path("user[special_event_id]" => (@event.id).to_s) ,:class => "register_link big_button orange_button"%> <%= t('register.or_choose') + " " %> <%= link_to t('register.back_to_streaming'),space_event_path(@space, @event, :show_streaming => true) %> <%elsif (@event.other_participation_url== nil || @event.other_participation_url=="") && !@event.authorize?(:update, :to => current_user)%> <%=t("event.participation.none")%> <%elsif (@event.other_participation_url== nil || @event.other_participation_url=="") && @event.authorize?(:update, :to => current_user)%>
<%=@event.other_participation_url%>
<%else%>
Live!
<%if @event.has_streaming?%> <%=link_to ("" + t('event.streaming.back') + ""),space_event_path(@space, @event, :show_streaming => true), {:id=>"view_streaming", :class=>"grey_button basic_button",:title => t('event.view_participation')} %> <%end%>
<%=@event.other_participation_url%>
<%end%>
<%if @event.description != ""%> <%= render :partial => "events/event_description" %> <%end%>