add end button to views

This commit is contained in:
Zachary Chai
2016-11-04 18:28:52 -04:00
parent e11098c7a9
commit b8c876443f
6 changed files with 53 additions and 3 deletions

View File

@ -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') %>