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 + +
    +
  • % }