<% metaTitle = @room.metadata.all.select{ |m| m.name == configatron.metadata.title }.first %> <% metaDesc = @room.metadata.all.select{ |m| m.name == configatron.metadata.description }.first %> <%= content_for :javascript do %> $("a#edit_bbb_room").fancybox({ 'hideOnContentClick' : false, 'frameWidth' : 450, 'frameHeight' : 430 }); $("#edit-bbb-room #private").livequery('click', function(event) { $('#edit-bbb-room .passwords').toggle(0); if ($("#private").is(':checked')) { $('#moderatorPW').removeAttr('disabled'); $('#attendeePW').removeAttr('disabled'); } else{ $('#moderatorPW').attr('disabled', true); $('#attendeePW').attr('disabled', true); } }); $("#new-webconf-room #private").livequery('click', function(event) { $('#new_room_private_area').toggle(0); if ($(this).is(':checked')) { $('#moderatorPW').removeAttr('disabled'); $('#attendeePW').removeAttr('disabled'); } else { $('#moderatorPW').attr('disabled', true); $('#attendeePW').attr('disabled', true); } }); 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, :format => 'json') %>", { authenticity_token: "<%= form_authenticity_token() %>" }, null, "html").fail(function(e) { recListUpdateEnd(true); }).success(function(data) { $.get("<%= recordings_home_path(:partial => '1', :limit => 3) %>", { authenticity_token: "<%= form_authenticity_token() %>" }).fail(function() { recListUpdateEnd(true); }).success(function(data) { recListUpdateEnd(false); if (data.trim() != "") { $("#recording-list-all").show(); $("#recording-list-wrapper").html(data); } else { $("#recording-list-all").hide(); } }); }); <% end %>

<%= t('webconference.my_webconference') %> <% if @room.is_running? %> <% if @room.participant_count == 0 %> <% text = t('home.running_with.no_participants') %> <% else %> <% text = t('home.running_with.participants', :count => @room.participant_count) %> <% end %> <% else %> <% text = t('home.not_running') %> <% end %> <% text = "(" + text + ")" %> <%= text %>
<%= 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" %>

<% if @room.nil? %> <%= t('home.no_rooms') %> <% else %>
<%= t('home.invite_url') + ":" %>
<%= link_to t('home.webconf.configure'), edit_bbb_room_user_path(current_user, :room => @room.to_param), :id => "edit_bbb_room", :class => 'basic_button small_button pale_button' %> <%= link_to "#", :class => 'basic_button small_button orange_pale_button join_button', :"data-dropdown" => "#dropdown-join-webconf" do %> <%= t('button.join') %> <% end %>
<% if @recordings.count > 0 %>

<%= t('home.recordings.latest_recordings', :count => @recordings.count) %> <%= t('home.recordings.view_all') %>

<%= render :partial => 'recordings/recording_list', :locals => {:recordings => @recordings, :show_authors => false} %>
<% end %>
<% end %>
<%= render :partial => 'recordings/recording_start_links', :locals => { :resource => @room, :route => user_path(current_user, :format => 'json') } %>