forked from External/greenlight
add end button to views
This commit is contained in:
@ -6,9 +6,22 @@
|
||||
<%= text_field :nil, :nil, class: 'form-control meeting-user-name', placeholder: t('enter_name') %>
|
||||
<% end %>
|
||||
<% if admin? %>
|
||||
<button type="button" class="btn btn-primary center-block meeting-join">
|
||||
<%= t('start') %>
|
||||
</button>
|
||||
<% 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') %>
|
||||
</button>
|
||||
<% end %>
|
||||
<% elsif current_user %>
|
||||
<button type="button" class="btn btn-primary center-block meeting-join">
|
||||
<%= t('join') %>
|
||||
|
Reference in New Issue
Block a user