forked from External/greenlight
increase width of center panel and make responsive
This commit is contained in:
@ -11,14 +11,12 @@
|
||||
<% end %>
|
||||
|
||||
<%= render layout: 'shared/center_panel' do %>
|
||||
<div class="center-block col-sm-8">
|
||||
<div class="center-block center-panel-conent-size col-xs-12">
|
||||
<% if admin? %>
|
||||
<%= render 'shared/meeting_url', hidden: false %>
|
||||
<% else %>
|
||||
<%= render 'shared/meeting_url', hidden: true %>
|
||||
<% end %>
|
||||
<div class="join-form-wrapper">
|
||||
<%= render 'shared/join_form' %>
|
||||
</div>
|
||||
<%= render 'shared/join_form' %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
@ -24,7 +24,7 @@
|
||||
|
||||
<div class="center-panel-wrapper">
|
||||
<%= render layout: 'shared/center_panel' do %>
|
||||
<div class="center-block col-sm-8">
|
||||
<div class="center-block center-panel-conent-size col-xs-12">
|
||||
<%= render 'shared/meeting_url', hidden: false %>
|
||||
<%= render 'shared/join_form' %>
|
||||
</div>
|
||||
|
@ -4,6 +4,7 @@
|
||||
<title>Greenlight</title>
|
||||
<%= csrf_meta_tags %>
|
||||
<%= action_cable_meta_tag %>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
|
||||
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
|
||||
@ -31,7 +32,9 @@
|
||||
<%= t('are_you', name: @user.username) %> |
|
||||
<%= link_to t('login'), "/auth/#{@user.provider}" %>
|
||||
<% else %>
|
||||
<%= t('oauth_signup') %>
|
||||
<span class="signup-description hidden-xs">
|
||||
<%= t('oauth_signup') %>
|
||||
</span>
|
||||
<%= link_to('/auth/twitter', :class => "btn icon btn-lg btn-social-icon btn-twitter") do %>
|
||||
<span class="fa fa-twitter"></span>
|
||||
<% end %>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="center-panel">
|
||||
<div class="row">
|
||||
<div class="center-block center-panel-size">
|
||||
<div class="center-block center-panel-size col-xs-12">
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-body">
|
||||
<h3 class="title-wrapper text-center">
|
||||
|
@ -1,36 +1,40 @@
|
||||
<div class="join-form input-group input-spacing">
|
||||
<% if current_user %>
|
||||
<% @current_user = current_user %>
|
||||
<%= text_field :current_user, :name, class: 'form-control meeting-user-name', type: 'hidden' %>
|
||||
<% else %>
|
||||
<%= text_field :nil, :nil, class: 'form-control meeting-user-name', placeholder: t('enter_name') %>
|
||||
<% end %>
|
||||
<% if admin? %>
|
||||
<% if @meeting_running %>
|
||||
<div class="col-sm-6">
|
||||
<button type="button" class="btn btn-primary meeting-join pull-right">
|
||||
<div class="join-form-wrapper">
|
||||
<div class="center-block">
|
||||
<div class="join-form input-group input-spacing">
|
||||
<% if current_user %>
|
||||
<% @current_user = current_user %>
|
||||
<%= text_field :current_user, :name, class: 'form-control meeting-user-name', type: 'hidden' %>
|
||||
<% else %>
|
||||
<%= text_field :nil, :nil, class: 'form-control meeting-user-name', placeholder: t('enter_name') %>
|
||||
<% end %>
|
||||
<% 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') %>
|
||||
</button>
|
||||
<% end %>
|
||||
<% elsif current_user %>
|
||||
<button type="button" class="btn btn-primary center-block meeting-join">
|
||||
<%= 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') %>
|
||||
</button>
|
||||
<% else %>
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-primary meeting-join">
|
||||
<%= t('join') %>
|
||||
</button>
|
||||
</span>
|
||||
<% end %>
|
||||
<% else %>
|
||||
<span class="input-group-btn">
|
||||
<button type="button" class="btn btn-primary meeting-join">
|
||||
<%= t('join') %>
|
||||
</button>
|
||||
</span>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user