Sha256: 8334292aac12eb11c738a21a25ff55471da29ad69945d97850cfcbe8328d731d

Contents?: true

Size: 1.58 KB

Versions: 2

Compression:

Stored size: 1.58 KB

Contents

<script type="text/javascript">

function ajax_request() {
  $.ajax({
    url: "<%= running_bigbluebutton_server_room_url(@server, @room, :format => 'json') %>",
    dataType: 'json',
    error: function(xhr_data) {
      $("#meeting_status").html("<request error>.");
      setTimeout(function() { ajax_request(); }, 10000);
    },
    success: function(xhr_data) {
      if (xhr_data.running == 'false') {
        $("#meeting_status").html("not running.");
      } else {
        $("#meeting_status").html("running!");
      }
      setTimeout(function() { ajax_request(); }, 10000);
    },
    contentType: 'application/json'
  });
}

$(document).ready(function(){
  ajax_request();
});

</script>

<h1>Invite to the meeting <%= @room.name %></h1>

<div id="error_explanation"><%= flash[:error] %></div>

<p>Meeting status: <span id="meeting_status">-</span> (<a href="javascript:ajax_request();">refresh</a>)</p>
<p><%= @room.name %> requires a name and/or password to join:</p>

<%= form_tag join_bigbluebutton_server_room_path(@server, @room) do %>

  <div class="field">
    <label for="user_name">Name:</label><br />
    <% if bigbluebutton_user.nil? %>
      <%= text_field_tag "user[name]", "" %>
    <% else %>
      <%= text_field_tag "user[name]", bigbluebutton_user.name %>
    <% end %>
  </div>
  <div class="field">
    <label for="user_password">Password:</label><br />
    <% if @room.private %>
      <%= password_field_tag "user[password]", "" %>
    <% else %>
      <%= password_field_tag "user[password]", @room.attendee_password %>
    <% end %>
  </div>

  <%= submit_tag "Submit" %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bigbluebutton_rails-1.0.0 app/views/bigbluebutton/rooms/invite.html.erb
bigbluebutton_rails-0.1.0 app/views/bigbluebutton/rooms/invite.html.erb