From a201060e69d1bd9872b1ed0ddd2361d4477c8075 Mon Sep 17 00:00:00 2001 From: Luc Didry Date: Tue, 30 Jul 2019 22:15:31 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9C=20Fix=20mobile=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- themes/default/public/js/lufi-up.js | 1 - themes/default/templates/layouts/default.html.ep | 13 +++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/themes/default/public/js/lufi-up.js b/themes/default/public/js/lufi-up.js index 94a9122..402d8ed 100644 --- a/themes/default/public/js/lufi-up.js +++ b/themes/default/public/js/lufi-up.js @@ -543,7 +543,6 @@ function updateProgressBar(data) { if (isGuest) { sendFilesURLs(); } - } } else { j++; diff --git a/themes/default/templates/layouts/default.html.ep b/themes/default/templates/layouts/default.html.ep index 867e747..4338d2c 100644 --- a/themes/default/templates/layouts/default.html.ep +++ b/themes/default/templates/layouts/default.html.ep @@ -32,7 +32,7 @@ % if ((!defined(config('ldap')) && !defined(config('htpasswd'))) || is_user_authenticated()) { ><%= l('Upload files') %> ><%= l('My files') %> - % if (defined $self->config('ldap') && defined $self->config('invitations')) { + % if (defined config('ldap') && defined config('invitations')) { ><%= l('Invite a guest') %> ><%= l('My invitations') %> % } @@ -65,6 +65,10 @@ % if ((!defined(config('ldap')) && !defined(config('htpasswd'))) || is_user_authenticated()) { ><%= l('Upload files') %> ><%= l('My files') %> + % if (defined config('ldap') && defined config('invitations')) { + ><%= l('Invite a guest') %> + ><%= l('My invitations') %> + % } % } else {
  • <%= l('Signin') %>
  • % } @@ -81,7 +85,12 @@ ><%= l('About') %> % if ((defined(config('ldap')) || defined(config('htpasswd'))) && is_user_authenticated()) { -
  • <%= l('Logout') %>
  • +
  • +
    + %= csrf_field + +
    +
  • % }