%= 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%>
<%= 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)%>