|
Luc Didry |
91e078 |
% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
|
|
Luc Didry |
986e77 |
% my $lang = $self->languages;
|
|
Luc Didry |
986e77 |
% $lang =~ s/-(.*)/_\U$1/;
|
|
Luc Didry |
91e078 |
|
|
Luc Didry |
91e078 |
<html>
|
|
Luc Didry |
91e078 |
<head>
|
|
Luc Didry |
441400 |
<title><%= config('instance_name') %></title>
|
|
Luc Didry |
91e078 |
<meta charset="utf-8">
|
|
Luc Didry |
91e078 |
<meta name="mobile-web-app-capable" content="yes">
|
|
Luc Didry |
91e078 |
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
Luc Didry |
91e078 |
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
Luc Didry |
91e078 |
<link rel="icon" type="image/png" href="<%= url_for('/img/favicon.png') %>">
|
|
Luc Didry |
91e078 |
<link rel="icon" sizes="128x128" href="<%= url_for('/img/lufi128.png') %>">
|
|
Luc Didry |
91e078 |
<link rel="icon" sizes="196x196" href="<%= url_for('/img/lufi196.png') %>">
|
|
Luc Didry |
91e078 |
<link rel="apple-touch-icon" href="<%= url_for('/img/lufi60.png') %>">
|
|
Luc Didry |
91e078 |
<link rel="apple-touch-icon" sizes="76x76" href="<%= url_for('/img/lufi76.png') %>">
|
|
Luc Didry |
91e078 |
<link rel="apple-touch-icon" sizes="120x120" href="<%= url_for('/img/lufi120.png') %>">
|
|
Luc Didry |
91e078 |
<link rel="apple-touch-icon" sizes="152x152" href="<%= url_for('/img/lufi152.png') %>">
|
|
Luc Didry |
91e078 |
<link rel="apple-touch-icon-precomposed" sizes="128x128" href="<%= url_for('/img/lufi128.png') %>">
|
|
Luc Didry |
d3222b |
%= stylesheet '/css/materialize.min.css'
|
|
Luc Didry |
91e078 |
%= stylesheet '/css/lufi.css'
|
|
Luc Didry |
c2e926 |
%= javascript '/js/ie-detection.js'
|
|
Luc Didry |
d3222b |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
Luc Didry |
91e078 |
</head>
|
|
Luc Didry |
91e078 |
<body>
|
|
Luc Didry |
d3222b |
<nav class="cyan">
|
|
Luc Didry |
d3222b |
|
|
Luc Didry |
441400 |
<%= config('instance_name') %>
|
|
Luc Didry |
377ba0 |
|
|
Luc Didry |
d3222b |
|
|
Luc Didry |
377a48 |
<%= l('Report file') %>
|
|
mildis |
537764 |
% if ((!defined(config('ldap')) && !defined(config('htpasswd')) && !defined(config('auth_headers'))) || is_user_authenticated()) {
|
|
Luc Didry |
d3222b |
<li<%== ' class="active"' if (current_route eq 'index') %>><%= l('Upload files') %>
|
|
Luc Didry |
d3222b |
<li<%== ' class="active"' if (current_route eq 'files') %>><%= l('My files') %>
|
|
mildis |
537764 |
% if ((defined config('ldap') || defined config('auth_headers')) && defined config('invitations')) {
|
|
Luc Didry |
8b68d7 |
<li<%== ' class="active"' if (current_route eq 'invite') %>><%= l('Invite a guest') %>
|
|
Luc Didry |
8b68d7 |
<li<%== ' class="active"' if (current_route eq 'invite/list') %>><%= l('My invitations') %>
|
|
Luc Didry |
8b68d7 |
% }
|
|
Luc Didry |
ac8d76 |
% } else {
|
|
Luc Didry |
ac8d76 |
<%= l('Signin') %>
|
|
Luc Didry |
ac8d76 |
% }
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
986e77 |
<label class="hiddendiv"><%= l('Language') %></label>
|
|
Luc Didry |
986e77 |
<select>
|
|
Luc Didry |
412083 |
<option value="" disabled selected><%= l('Language') %></option>
|
|
Luc Didry |
986e77 |
% for my $i (@{$self->available_langs}) {
|
|
Luc Didry |
412083 |
<option value="<%= $i %>"><%= iso639_native_name($i) %></option>
|
|
Luc Didry |
986e77 |
% }
|
|
Luc Didry |
986e77 |
</select>
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
d3222b |
<li<%== ' class="active"' if (current_route eq 'about') %>><%= l('About') %>
|
|
mildis |
537764 |
% if ((defined(config('ldap')) || defined(config('htpasswd')) || defined(config('auth_headers'))) && is_user_authenticated()) {
|
|
Luc Didry |
da7cb6 |
|
|
Luc Didry |
da7cb6 |
<form action="<%= url_for('/logout') %>" method="POST">
|
|
Luc Didry |
da7cb6 |
%= csrf_field
|
|
Luc Didry |
da7cb6 |
<button class="btn-flat" type="submit"><%= l('Logout') %></button>
|
|
Luc Didry |
da7cb6 |
</form>
|
|
Luc Didry |
da7cb6 |
|
|
Luc Didry |
ac8d76 |
% }
|
|
Luc Didry |
d3222b |
|
|
Luc Didry |
377ba0 |
|
|
Luc Didry |
377a48 |
<%= l('Report file') %>
|
|
mildis |
537764 |
% if ((!defined(config('ldap')) && !defined(config('htpasswd')) && !defined(config('auth_headers'))) || is_user_authenticated()) {
|
|
Luc Didry |
d3222b |
<li<%== ' class="active"' if (current_route eq 'index') %>><%= l('Upload files') %>
|
|
Luc Didry |
d3222b |
<li<%== ' class="active"' if (current_route eq 'files') %>><%= l('My files') %>
|
|
mildis |
537764 |
% if ((defined config('ldap') || defined config('auth_headers')) && defined config('invitations')) {
|
|
Luc Didry |
a20106 |
<li<%== ' class="active"' if (current_route eq 'invite') %>><%= l('Invite a guest') %>
|
|
Luc Didry |
a20106 |
<li<%== ' class="active"' if (current_route eq 'invite/list') %>><%= l('My invitations') %>
|
|
Luc Didry |
a20106 |
% }
|
|
Luc Didry |
ac8d76 |
% } else {
|
|
Luc Didry |
ac8d76 |
<%= l('Signin') %>
|
|
Luc Didry |
ac8d76 |
% }
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
986e77 |
<label class="hiddendiv"><%= l('Language') %></label>
|
|
Luc Didry |
986e77 |
<select>
|
|
Luc Didry |
412083 |
<option value="" disabled selected><%= l('Language') %></option>
|
|
Luc Didry |
986e77 |
% for my $i (@{$self->available_langs}) {
|
|
Luc Didry |
412083 |
<option value="<%= $i %>"><%= iso639_native_name($i) %></option>
|
|
Luc Didry |
986e77 |
% }
|
|
Luc Didry |
986e77 |
</select>
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
986e77 |
|
|
Luc Didry |
d3222b |
<li<%== ' class="active"' if (current_route eq 'about') %>><%= l('About') %>
|
|
mildis |
537764 |
% if ((defined(config('ldap')) || defined(config('htpasswd')) || defined(config('auth_headers'))) && is_user_authenticated()) {
|
|
Luc Didry |
a20106 |
|
|
Luc Didry |
a20106 |
<form action="<%= url_for('/logout') %>" method="POST">
|
|
Luc Didry |
a20106 |
%= csrf_field
|
|
Luc Didry |
a20106 |
<button class="btn-flat" type="submit"><%= l('Logout') %></button>
|
|
Luc Didry |
a20106 |
</form>
|
|
Luc Didry |
a20106 |
|
|
Luc Didry |
ac8d76 |
% }
|
|
Luc Didry |
d3222b |
|
|
Luc Didry |
91e078 |
|
|
Luc Didry |
d3222b |
</nav>
|
|
Luc Didry |
d3222b |
|
|
Luc Didry |
986e77 |
%= javascript '/js/jquery-2.2.4.min.js'
|
|
Luc Didry |
986e77 |
%= javascript '/partial/layout.js'
|
|
Luc Didry |
d94c2b |
%= javascript '/js/lufi-common.js'
|
|
Luc Didry |
d3222b |
<%= content %>
|
|
Luc Didry |
91e078 |
|
|
Luc Didry |
9430bd |
% if (defined(config('piwik_img'))) {
|
|
Luc Didry |
d4ac8f |
|
|
Luc Didry |
9430bd |
% }
|
|
Luc Didry |
d3222b |
%= javascript '/js/materialize.js'
|
|
Luc Didry |
c2e926 |
%= javascript '/js/sidenav.js'
|
|
Luc Didry |
91e078 |
</body>
|
|
Luc Didry |
91e078 |
</html>
|