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