greenlight/app/views/landing/rooms.html.erb

51 lines
1.5 KiB
Plaintext

<% if current_user %>
<% page_title = t('greet_user', name: current_user.name) %>
<% else %>
<% page_title= t('greet_guest', name: @user.username) %>
<% end %>
<% content_for :title do %>
<div class="title">
<% if current_user == @user %>
<%= t('start_new_session') %>
<% elsif current_user && current_user != @user %>
<%= t('join_session_user', name: @user.username) %>
<% else %>
<%= t('join_session_guest') %>
<% end %>
</div>
<% end %>
<div class="page-wrapper rooms" data-room="<%= @user.username %>">
<div class="container-fluid">
<%= render 'shared/title', title: page_title %>
<div class="center-panel-wrapper">
<%= render layout: 'shared/center_panel' do %>
<div class="center-block col-sm-8">
<% if current_user == @user %>
<%= render 'shared/meeting_url', hidden: false %>
<% else %>
<%= render 'shared/meeting_url', hidden: true %>
<% end %>
<%= render 'shared/join_form', user: current_user %>
</div>
<% end %>
</div>
<div class="table-wrapper">
<h3><%= t('past_recordings') %></h3>
<table id="recordings" class="table" width="100%">
<thead>
<th><%= t('date_recorded') %></th>
<th><%= t('presentation') %></th>
<th><%= t('duration') %></th>
<th><%= t('views') %></th>
<th><%= t('actions') %></th>
</thead>
</table>
</div>
</div>
</div>