<% if params[:partial] %> <%= render :partial => 'recordings/recording_list', :locals => {:recordings => @recordings, :show_authors => false} %> <% else %> <%= content_for :javascript do %> recListUpdateStart = function() { $("#update-recordings-loading").show(); } recListUpdateEnd = function(error) { $("#update-recordings-loading").hide(); if (error) { $("#update-recordings-error").show(); window.setTimeout(function() { $("#update-recordings-error").hide(); }, 5000); $("#recording-list-wrapper").effect("highlight", { color: "#ff0000"}, 5000); } else { $("#update-recordings-success").show(); window.setTimeout(function() { $("#update-recordings-success").hide(); }, 5000); $("#recording-list-wrapper").effect("highlight", { color: "#00ff00"}, 5000); } } recListUpdateStart(); $.post("<%= fetch_recordings_bigbluebutton_room_path(@room) %>", { authenticity_token: "<%= form_authenticity_token() %>" }).fail(function() { recListUpdateEnd(true); }).success(function(data) { $.get("<%= recordings_home_path(:partial => '1') %>", { authenticity_token: "<%= form_authenticity_token() %>" }).fail(function() { recListUpdateEnd(true); }).success(function(data) { recListUpdateEnd(false); $("#recording-list-wrapper").html(data); }); }); <% end %> <%= content_for :search do %> <%= render :partial => 'search/form' %> <%end%>

<%= t('recordings.title') %>
<%= t("recordings.update_list.error") %> <%= image_tag "icons/exclamation.png", :size => "16x16" %>
<%= t("recordings.update_list.success") %> <%= image_tag "icons/accept.png", :size => "16x16" %>
<%= t("recordings.update_list.updating") %> <%= image_tag "icons/loading-16x16.gif", :size => "16x16" %>

<%= render :partial => 'recordings/recording_list', :locals => {:recordings => @recordings, :show_authors => false} %>
<% end %>