initial commit

This commit is contained in:
Josh
2018-05-07 16:06:01 -04:00
commit 4037b6304e
125 changed files with 2493 additions and 0 deletions

View File

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html>
<head>
<title>Greenlight20</title>
<%= csrf_meta_tags %>
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
<%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<body class="app-background" data-controller="<%= params[:controller] %>" data-action="<%= params[:action] %>"
data-resource="<%= params[:resource] %>"
data-current-user="<%= current_user.try(:encrypted_id) %>"
style="background-image:url(<%= image_path('background.png') if params[:controller] == 'main' %>);">
<!-- Messages -->
<div id='alerts'>
<div class='flash-alerts'>
<% flash.each do |name, msg| %>
<div class="alert alert-<%= name %> alert-dismissible fade in" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">&times;</span>
</button>
<span class="alert-message"><%= msg %></span>
</div>
<% end %>
</div>
</div>
<!-- Header -->
<div class='header'>
<span class="logo-wrapper pull-left">
<% if current_user %>
<%= link_to image_tag("bbb_logo.png", :alt => "BigBlueButton", :class => "logo"), room_path(current_user) %>
<% else %>
<%= link_to image_tag("bbb_logo.png", :alt => "BigBlueButton", :class => "logo"), root_path %>
<% end %>
</span>
</div>
<%= yield %>
</body>
</html>

View File

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style>
/* Email styles need to be inline */
</style>
</head>
<body>
<%= yield %>
</body>
</html>

View File

@ -0,0 +1 @@
<%= yield %>

View File

@ -0,0 +1,15 @@
<div class="row invite-join-wrapper hidden">
<div class="col-xs-6">
<%= render 'shared/title', title: t('invite') do %>
<span><%= t('invite_description') %></span>
<% end %>
<%= render 'shared/meeting_url', hidden: false %>
</div>
<div class="verticle-line"></div>
<div class="col-xs-6">
<%= render 'shared/title', title: t('join'), title_class: 'join-meeting-title' %>
<button type="button" class="btn btn-primary center-block meeting-start has-tooltip" data-placement="top" title="<%= t('start_meeting') %>">
<%= t('start_join') %>
</button>
</div>
</div>

View File

@ -0,0 +1,34 @@
<% content_for :title do %>
<div class="title">
<h2>Landing Title</h2>
</div>
<% end %>
<div class="page-wrapper meetings">
<div class="container-fluid">
<div class="center-panel-wrapper">
<%= render layout: 'shared/center_panel' do %>
<div class="center-block center-panel-content-size col-xs-12">
<%= render 'shared/meeting_name_form' %>
<div class="row">
<%= render 'main/invite_join' %>
</div>
</div>
<% end %>
</div>
<% unless configured_providers.empty? %>
<div class="center-block col-xs-6 login">
<%= render 'shared/signup' %>
</div>
<% end %>
<div class="text-center" style="padding-top:20px;">
<iframe width="560" height="315" src="https://www.youtube.com/embed/yGX3JCv7OVM" frameborder="0" allowfullscreen></iframe>
</div>
</div>
</div>

View File

@ -0,0 +1,7 @@
<p>The join the meeting, enter a name.</p>
<p>Enter a name to start a session.</p>
<%= form_tag join_meeting_path(room_uid: @meeting.room.uid, meeting_uid: @meeting.uid) do %>
<%= text_field_tag "join_name" %>
<%= submit_tag "Join" %>
<% end %>

View File

@ -0,0 +1 @@
<p>waiting for meeting to start...</p>

View File

@ -0,0 +1,22 @@
<p>This is a room.</p>
<p><%= @room.user.name %><p>
<%= link_to 'Sessions', root_path %>
<%= link_to 'Recordings', root_path %>
<%= link_to 'Settings', root_path %>
<p>Enter a name to start a session.</p>
<%= form_for @meeting do |f| %>
<%= f.text_field :name %>
<%= f.submit "Start" %>
<% end %>
<br><br><br><br><br>
<p>Previous Sessions</p>
<% current_user.room.meetings.each do |m| %>
<p><%= m.name + " " + m.is_running?.to_s %></p>
<% end %>
<br>
<%= link_to 'Logout', user_logout_path %>

View File

@ -0,0 +1,32 @@
<% content_for :title do %>
<div class="title">
<h2><%= "Login" %></h2>
</div>
<% end %>
<div class="page-wrapper login">
<div class="container-fluid">
<div class="center-panel-wrapper">
<%= render layout: 'shared/center_panel' do %>
<div class="center-block center-panel-content-size col-xs-12">
<% configured_providers.each do |provider| %>
<%= link_to omniauth_login_url(provider), class: "signin-link signin-link-#{provider}" do %>
<div class="signin-button center-block">
<div class="signin-icon-wrapper">
<%= image_tag("#{provider}_logo.png", alt: "T", class: "signin-icon") %>
</div>
<div class="signin-text-wrapper text-center">
<span class="signin-text"><%= "Login with #{provider.capitalize}" %></span>
</div>
</div>
<% end %>
<% end %>
</div>
<% end %>
</div>
</div>
</div>

View File

@ -0,0 +1,21 @@
<div class="center-panel">
<div class="row">
<div class="center-block center-panel-size col-xs-12">
<div class="panel panel-default">
<div class="panel-body">
<% if bigbluebutton_endpoint_default? %>
<div class="panel-alert alert alert-danger"><%= t('warning_bigbluebutton_endpoint_default') %></div>
<% end %>
<h3 class="title-wrapper text-center">
<%= yield :title %>
</h3>
<%= yield %>
</div>
<%= yield :footer %>
<div class="help-link">
<%= link_to t('help'), 'http://bigbluebutton.org/videos/', target: '_blank' %>
</div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,3 @@
<div class="meeting-name-form-wrapper">
<input type="text" class="form-control meeting-name" placeholder="Enter meeting name." maxlength="<%= meeting_name_limit %>">
</div>

View File

@ -0,0 +1,42 @@
<div <%= "hidden" if hidden %> class="meeting-url-wrapper">
<div class="meeting-url-group">
<input type="text" class="form-control meeting-url"/>
</div>
<% if current_user %>
<% body = t('meeting_invite.signed_in.body', user: current_user.name) %>
<% subject = t('meeting_invite.signed_in.subject', user: current_user.name) %>
<% else %>
<% body = t('meeting_invite.not_signed_in.body') %>
<% subject = t('meeting_invite.not_signed_in.subject') %>
<% end %>
<div class="meeting-url-button-group center-block">
<button type="button" class="btn btn-default meeting-url-copy has-tooltip"
title="<%= t('url_copy_explanation') %>"
data-copied-hint="<%= t('copied') %>"
data-copy-error="<%= t('copy_error') %>"
data-copy-hint="<%= t('url_copy_explanation') %>"
>
<%= icon('clipboard') %>
</button>
<button type="button" class="btn btn-default meeting-invite has-tooltip"
title="<%= t('meeting_invite.explanation') %>"
data-invite-body="<%= body %>"
data-invite-subject="<%= subject %>"
>
<%= icon('envelope-o') %>
</button>
<button type="button" class="btn btn-default meeting-url-qrcode has-tooltip"
title="<%= t('qrcode.explanation') %>"
data-qrcode-generated-hint="<%= t('qrcode.generated') %>"
data-qrcode-generate-error="<%= t('qrcode.generate_error') %>"
data-qrcode-generate-hint="<%= t('qrcode.explanation') %>"
>
<%= icon('qrcode') %>
</button>
</div>
<div class="meeting-url-qrcode-group center-block has-tooltip"></div>
</div>

View File

@ -0,0 +1,17 @@
<span class="signup">
<% if current_user %>
<div class="text-center">
<% if @main_room %>
<span><%= t('logged_in_description_html', link: link_to(current_user.name, room_path(current_user))) %></span>
<% else %>
<%= link_to(t('return_to_room'), room_path(current_user)) %>
<% end %>
<div><%= link_to t('logout'), user_logout_url %></div>
</div>
<% else %>
<div class="text-center">
<span><%= t('login_description') %></span>
<div><%= link_to t('login'), user_login_url %></div>
</div>
<% end %>
</span>

View File

@ -0,0 +1,7 @@
<% title_class ||= '' %>
<div class="title-wrapper text-center">
<div class="title">
<h2 class="<%= title_class if title_class %>"><%= title %></h2>
<%= yield %>
</div>
</div>