forked from External/greenlight
71 lines
2.8 KiB
Plaintext
71 lines
2.8 KiB
Plaintext
<!--
|
|
BigBlueButton open source conferencing system - http://www.bigbluebutton.org/.
|
|
Copyright (c) 2016 BigBlueButton Inc. and by respective authors (see below).
|
|
This program is free software; you can redistribute it and/or modify it under the
|
|
terms of the GNU Lesser General Public License as published by the Free Software
|
|
Foundation; either version 3.0 of the License, or (at your option) any later
|
|
version.
|
|
|
|
BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
|
PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
|
|
You should have received a copy of the GNU Lesser General Public License along
|
|
with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
|
|
-->
|
|
|
|
<div class="join-form-wrapper">
|
|
<div class="center-block">
|
|
<div class="join-form input-group input-spacing">
|
|
|
|
<!-- if the user is signed in, add a hidden input with their name -->
|
|
<% if current_user %>
|
|
<%= text_field_tag 'user[name]', current_user.name, class: 'form-control meeting-user-name', type: 'hidden' %>
|
|
<% end %>
|
|
|
|
<!-- if admin means the user is signed in and owns the room -->
|
|
<% if admin? %>
|
|
<% if @meeting_running %>
|
|
<div class="col-sm-6">
|
|
<button type="button" class="btn btn-primary meeting-join pull-right">
|
|
<%= t('join') %>
|
|
</button>
|
|
</div>
|
|
<div class="col-sm-6">
|
|
<button type="button" class="btn btn-danger meeting-end pull-left">
|
|
<%= t('end') %>
|
|
</button>
|
|
</div>
|
|
<% else %>
|
|
<button type="button" class="btn btn-primary center-block meeting-join">
|
|
<%= t('start_meeting') %>
|
|
</button>
|
|
<% end %>
|
|
<% else %>
|
|
|
|
<!-- on the page of a room/meeting, the user might have to enter a name -->
|
|
<% if on_room_or_meeting_page? %>
|
|
<% if current_user %>
|
|
<button type="button" class="btn btn-primary center-block meeting-join">
|
|
<%= t('join') %>
|
|
</button>
|
|
<% else %>
|
|
<%= text_field_tag 'user[name]', '', class: 'form-control meeting-user-name', placeholder: t('enter_name') %>
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-primary center-block meeting-join">
|
|
<%= t('join') %>
|
|
</button>
|
|
</span>
|
|
<% end %>
|
|
|
|
<!-- on the landing page we don't ask for a name, just show the start button -->
|
|
<% else %>
|
|
<button type="button" class="btn btn-primary center-block meeting-join">
|
|
<%= t('start_meeting') %>
|
|
</button>
|
|
<% end %>
|
|
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|