mirror of https://github.com/dani/vroom.git
parent
426fa04522
commit
6c2cf3e60a
28 changed files with 1550 additions and 708 deletions
File diff suppressed because it is too large
Load Diff
@ -1,51 +1,50 @@ |
||||
% title $self->l('OOOPS'); |
||||
% title l('OOOPS'); |
||||
%= include 'header' |
||||
%= include 'public_toolbar' |
||||
<div class="container-fluid"> |
||||
<div class="jumbotron alert-danger"> |
||||
<h2> |
||||
<%= l('ERROR_OCCURRED') %> |
||||
%= l('ERROR_OCCURRED') |
||||
</h2> |
||||
<p> |
||||
<%= $msg %> |
||||
%= $msg |
||||
</p> |
||||
<div class="row"> |
||||
<div class="col-sm-6 col-lg-4 col-xl-3"> |
||||
<a class="btn btn-primary btn-lg btn-full" role="button" href="<%= $self->url_for('/') %>"> |
||||
<%= l('BACK_TO_MAIN_MENU') %> |
||||
<a class="btn btn-primary btn-lg btn-full" |
||||
href="<%= url_for('/') %>"> |
||||
%= l('BACK_TO_MAIN_MENU') |
||||
</a> |
||||
</div> |
||||
<div class="col-sm-6 col-lg-4 col-xl-3"> |
||||
<% if ($err eq 'ERROR_NAME_CONFLICT'){ %> |
||||
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->url_for("/$room") %>"> |
||||
<%= l('JOIN_THIS_ROOM') %> |
||||
% if ($err eq 'ERROR_NAME_CONFLICT'){ |
||||
<a class="btn btn-default btn-lg btn-full" |
||||
href="<%= url_for("/$room") %>"> |
||||
%= l('JOIN_THIS_ROOM') |
||||
</a> |
||||
<% } elsif ($err eq 'WRONG_PASSWORD'){ %> |
||||
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->url_for("/password/$room") %>"> |
||||
<%= l('TRY_AGAIN') %> |
||||
</a> |
||||
<% } elsif ($err eq 'ERROR_ROOM_s_LOCKED' && stash 'ownerPass'){ %> |
||||
<a class="btn btn-default btn-lg btn-full" role="button" href="<%= $self->url_for("/password/$room") %>"> |
||||
<%= l('AUTH_IF_OWNER') %> |
||||
</a> |
||||
<% } elsif ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ %> |
||||
<button class="btn btn-default btn-lg btn-full" style="width: 100%" type="submit" form="createRoom"> |
||||
<%= l('CREATE_THIS_ROOM') %> |
||||
% } elsif ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ |
||||
<button class="btn btn-default btn-lg btn-full" |
||||
type="submit" form="createRoom"> |
||||
%= l('CREATE_THIS_ROOM') |
||||
</button> |
||||
<% } %> |
||||
% } |
||||
</div> |
||||
</div> |
||||
<% if ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ %> |
||||
% if ($err eq 'ERROR_ROOM_s_DOESNT_EXIST'){ |
||||
<form id="createRoom"> |
||||
<input type="text" id="roomName" name="roomName" value="<%= $room %>" hidden/> |
||||
<input type="text" |
||||
id="roomName" |
||||
name="roomName" |
||||
value="<%= $room %>" |
||||
hidden /> |
||||
</form> |
||||
<% } %> |
||||
% } |
||||
</div> |
||||
</div> |
||||
%= include 'js_common' |
||||
<script> |
||||
<script> |
||||
$(document).ready(function() { |
||||
initIndex(); |
||||
}); |
||||
</script> |
||||
</script> |
||||
%= include 'footer' |
||||
|
@ -1,4 +1,4 @@ |
||||
% stash msg => $self->l('SERVER_ERROR'); |
||||
% stash msg => l('SERVER_ERROR'); |
||||
% stash err => 'server_error'; |
||||
% stash room => ''; |
||||
%=include 'error' |
||||
%= include 'error' |
||||
|
@ -1,15 +1,27 @@ |
||||
<!DOCTYPE html> |
||||
<html lang="<%= $self->languages %>"> |
||||
<html lang="<%= languages %>"> |
||||
<head> |
||||
<title><%= $title %></title> |
||||
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
||||
<meta name="description" content=" <%= l('VROOM_DESC') %>" /> |
||||
<title> |
||||
%= $title |
||||
</title> |
||||
<meta name="viewport" |
||||
content="width=device-width, initial-scale=1" /> |
||||
<meta name="description" |
||||
content="<%= l('VROOM_DESC') %>" /> |
||||
<% |
||||
my @css = qw(bootstrap.css bootstrap-switch.css toc-scroll.css bootstrap-datepicker3.css vroom.css); |
||||
@css = map { $self->url_for('/') . 'css/' . $_ } @css; |
||||
my @css = qw( |
||||
bootstrap.css |
||||
bootstrap-switch.css |
||||
toc-scroll.css |
||||
bootstrap-datepicker3.css |
||||
vroom.css |
||||
); |
||||
@css = map { url_for('/css/' . $_) } @css; |
||||
%> |
||||
<%=css @css %> |
||||
<link rel="icon" type="image/png" href="<%= $self->url_for('/img/favicon.png') %>" /> |
||||
%= css @css |
||||
<link rel="icon" |
||||
type="image/png" |
||||
href="<%= url_for('/img/favicon.png') %>" /> |
||||
</head> |
||||
<body> |
||||
<div id="wrap"> |
||||
|
@ -1,54 +1,55 @@ |
||||
<p> |
||||
<%= l('YOU_ARE_INVITED_TO_A_MEETING') %> |
||||
%= l('YOU_ARE_INVITED_TO_A_MEETING') |
||||
<ul> |
||||
<li> |
||||
<%= l('A_MODERN_BROWSER') %> |
||||
%= l('A_MODERN_BROWSER') |
||||
</li> |
||||
<li> |
||||
<%= l('A_WEBCAM') %> |
||||
%= l('A_WEBCAM') |
||||
</li> |
||||
<li> |
||||
<%= l('A_MIC') %> |
||||
%= l('A_MIC') |
||||
</li> |
||||
</ul> |
||||
</p> |
||||
<p> |
||||
<%= l('WHEN_YOU_ARE_READY') %> |
||||
%= l('WHEN_YOU_ARE_READY') |
||||
<center> |
||||
<h1> |
||||
<% |
||||
my $link = Mojo::URL->new($self->url_for($room)->to_abs)->scheme('https'); |
||||
my $link = Mojo::URL->new(url_for($room)->to_abs)->scheme('https'); |
||||
my $target = $link->clone; |
||||
$target = ($joinPass eq 'yes') ? $target->query(token => $token) : $target; |
||||
%> |
||||
<a href="<%= $target %>"> |
||||
<%= $link %> |
||||
%= $link |
||||
</a> |
||||
</h1> |
||||
</center> |
||||
</p> |
||||
<% if ($message && $message ne ''){ %> |
||||
% if ($message && $message ne ''){ |
||||
<p> |
||||
<%= l('MESSAGE_FROM_ORGANIZER') %>: |
||||
</p> |
||||
<p> |
||||
<%= $message %> |
||||
%= $message |
||||
</p> |
||||
<% } %> |
||||
% } |
||||
<p> |
||||
<%= l('IF_YOU_CANNOT_JOIN') %> |
||||
%= l('IF_YOU_CANNOT_JOIN') |
||||
<h3> |
||||
<a style="color:red" href="<%= Mojo::URL->new($self->url_for('/invitation/' . $token)->to_abs)->scheme('https') %>"> |
||||
<%= l('YOU_CAN_NOTIFY_THE_ORGANIZER') %> |
||||
<a style="color:red" |
||||
href="<%= Mojo::URL->new(url_for('/invitation/' . $token)->to_abs)->scheme('https') %>"> |
||||
%= l('YOU_CAN_NOTIFY_THE_ORGANIZER') |
||||
</a> |
||||
</h3> |
||||
</p> |
||||
<br> |
||||
<p> |
||||
<%= l('HAVE_A_NICE_MEETING') %> |
||||
%= l('HAVE_A_NICE_MEETING') |
||||
</p> |
||||
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;"> |
||||
— |
||||
<br> |
||||
<%= l('EMAIL_SIGN') %> |
||||
%= l('EMAIL_SIGN') |
||||
</p> |
||||
|
@ -1,25 +1,39 @@ |
||||
<script type="text/javascript"> |
||||
<% my $url = $self->url_for('/'); |
||||
$url .= ($url =~ m/\/$/) ? '' : '/'; %> |
||||
var rootUrl = '<%= $url %>'; |
||||
var currentLang = '<%= $self->languages %>'; |
||||
var api_key = '<%= ($self->session('key')) ? $self->session('key') : '' %>'; |
||||
var page = '<%= stash('page') ? stash('page') : "" %>'; |
||||
var rootUrl = '<%= url_for('/') %>'; |
||||
var currentLang = '<%= languages %>'; |
||||
var api_key = '<%= (session('key')) ? session('key') : '' %>'; |
||||
var page = '<%= stash('page') ? stash('page') : '' %>'; |
||||
var roomName; |
||||
</script> |
||||
<script type="text/javascript" src= "<%= $self->url_for('/locales/' . $self->languages . '.js') %>"></script> |
||||
<script type="text/javascript" |
||||
src="<%= url_for('/locales/' . languages . '.js') %>"> |
||||
</script> |
||||
<% |
||||
my @js = qw(jquery-1.11.3.js bootstrap.js notify-combined.js bootstrap-switch.js jquery.bootpag.js toc.js bootstrap-datepicker.js); |
||||
my @js = qw( |
||||
jquery-1.11.3.js |
||||
bootstrap.js |
||||
notify-combined.js |
||||
bootstrap-switch.js |
||||
jquery.bootpag.js |
||||
toc.js |
||||
bootstrap-datepicker.js |
||||
); |
||||
# Load supported languages for datpicker, if they exists |
||||
foreach my $l ($self->get_supported_lang){ |
||||
if (-e 'public/js/datepicker-locales/bootstrap-datepicker.' . $l . '.js'){ |
||||
push @js, 'datepicker-locales/bootstrap-datepicker.' . $l . '.js'; |
||||
} |
||||
foreach my $l (get_supported_lang){ |
||||
push @js, 'datepicker-locales/bootstrap-datepicker.' . $l . '.js' |
||||
if (-e 'public/js/datepicker-locales/bootstrap-datepicker.' . $l . '.js'); |
||||
} |
||||
push @js, 'vroom.js'; |
||||
if (stash('page') && stash('page') eq 'room'){ |
||||
push @js, qw(simplewebrtc.bundle.js jquery.browser.js sprintf.js FileSaver.js jquery.tinytimer.js etherpad.js); |
||||
push @js, qw( |
||||
simplewebrtc.bundle.js |
||||
jquery.browser.js |
||||
sprintf.js |
||||
FileSaver.js |
||||
jquery.tinytimer.js |
||||
etherpad.js |
||||
); |
||||
} |
||||
@js = map { $self->url_for('/') . 'js/' . $_ } @js; |
||||
@js = map { url_for('/js/' . $_) } @js; |
||||
%> |
||||
<%=js @js %> |
||||
%= js @js |
||||
|
@ -1,4 +1,4 @@ |
||||
% stash msg => $self->l('PAGE_NOT_FOUND'); |
||||
% stash msg => l('PAGE_NOT_FOUND'); |
||||
% stash err => 'not_found'; |
||||
% stash room => ''; |
||||
%=include 'error' |
||||
%= include 'error' |
||||
|
@ -1,31 +1,28 @@ |
||||
<% |
||||
my $url = Mojo::URL->new($self->url_for('/')->to_abs)->scheme('https'); |
||||
$url .= ($url =~ m/\/$/) ? '' : '/'; |
||||
%> |
||||
% my $url = Mojo::URL->new(url_for('/' . $room)->to_abs)->scheme('https'); |
||||
<p> |
||||
<%= l('SOMEONE_JOINED_A_ROOM') %> |
||||
%= l('SOMEONE_JOINED_A_ROOM') |
||||
</p> |
||||
<% if ($name && $name ne ''){ %> |
||||
% if ($name && $name ne ''){ |
||||
<p> |
||||
<%= l('PARTICIPANT_NAME') %>: <%= $name %> |
||||
</p> |
||||
<% } %> |
||||
% } |
||||
<p> |
||||
<%= l('WHEN_YOU_ARE_READY') %> |
||||
%= l('WHEN_YOU_ARE_READY') |
||||
<center> |
||||
<h1> |
||||
<a href="<%= $url . $room %>"> |
||||
<%= $url . $room %> |
||||
<a href="<%= $url %>"> |
||||
%= $url |
||||
</a> |
||||
</h1> |
||||
</center> |
||||
</p> |
||||
<br> |
||||
<p> |
||||
<%= l('HAVE_A_NICE_MEETING') %> |
||||
%= l('HAVE_A_NICE_MEETING') |
||||
</p> |
||||
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;"> |
||||
— |
||||
<br> |
||||
<%= l('EMAIL_SIGN') %> |
||||
%= l('EMAIL_SIGN') |
||||
</p> |
||||
|
Loading…
Reference in new issue