Verified Commit 377a48bd authored by Luc Didry's avatar Luc Didry

Add report file link in the navbar

parent 6a4e48d3
......@@ -10,6 +10,7 @@ Revision history for Lufi
- Add Content-Security-Policy header
- Update sjcl.js
- Mitigate genRandomKey exception risk
- Add report file link in the navbar
0.02.2 2017-09-18
- Fix cron tasks bug
......
......@@ -18,6 +18,7 @@ requires 'Number::Bytes::Human';
requires 'Filesys::DfPortable';
requires 'Data::Entropy';
requires 'Crypt::SaltedHash';
requires 'Data::Validate::URI';
feature 'ldap', 'LDAP authentication support' => sub {
requires 'Net::LDAP';
......
......@@ -265,6 +265,37 @@ DISTRIBUTIONS
perl 5.006
strict 0
warnings 0
Data-Validate-Domain-0.14
pathname: D/DR/DROLSKY/Data-Validate-Domain-0.14.tar.gz
provides:
Data::Validate::Domain 0.14
requirements:
Exporter 0
ExtUtils::MakeMaker 0
Net::Domain::TLD 1.74
strict 0
warnings 0
Data-Validate-IP-0.27
pathname: D/DR/DROLSKY/Data-Validate-IP-0.27.tar.gz
provides:
Data::Validate::IP 0.27
requirements:
Exporter 0
ExtUtils::MakeMaker 0
NetAddr::IP 4
Scalar::Util 0
base 0
perl 5.008
strict 0
warnings 0
Data-Validate-URI-0.07
pathname: S/SO/SONNEN/Data-Validate-URI-0.07.tar.gz
provides:
Data::Validate::URI 0.07
requirements:
Data::Validate::Domain 0
Data::Validate::IP 0
ExtUtils::MakeMaker 0
Devel-GlobalDestruction-0.14
pathname: H/HA/HAARG/Devel-GlobalDestruction-0.14.tar.gz
provides:
......@@ -1236,6 +1267,14 @@ DISTRIBUTIONS
Test::More 0.52
Time::Local 1.19
perl 5.006
Net-Domain-TLD-1.75
pathname: A/AL/ALEXP/Net-Domain-TLD-1.75.tar.gz
provides:
Net::Domain::TLD 1.75
requirements:
Carp 0
ExtUtils::MakeMaker 0
Storable 0
Net-HTTP-6.18
pathname: O/OA/OALDERS/Net-HTTP-6.18.tar.gz
provides:
......@@ -1265,6 +1304,19 @@ DISTRIBUTIONS
MIME::Base64 0
Test::More 0.60_01
perl 5.005
NetAddr-IP-4.079
pathname: M/MI/MIKER/NetAddr-IP-4.079.tar.gz
provides:
NetAddr::IP 4.079
NetAddr::IP::InetBase 0.08
NetAddr::IP::Lite 1.57
NetAddr::IP::Util 1.53
NetAddr::IP::UtilPP 1.09
NetAddr::IP::UtilPolluted 1.53
NetAddr::IP::Util_IS 1
requirements:
ExtUtils::MakeMaker 0
Test::More 0
Number-Bytes-Human-0.11
pathname: F/FE/FERREIRA/Number-Bytes-Human-0.11.tar.gz
provides:
......
......@@ -4,6 +4,8 @@ use Mojo::Base 'Mojolicious';
use Net::LDAP;
use Apache::Htpasswd;
use Mojolicious::Sessions;
use Email::Valid;
use Data::Validate::URI qw(is_web_uri);
$ENV{MOJO_MAX_WEBSOCKET_SIZE} = 100485760; # 10 * 1024 * 1024 = 10MiB
......@@ -38,7 +40,15 @@ sub startup {
}
});
die "You need to provide a contact information in lufi.conf!" unless (defined($self->config('contact')));
die 'You need to provide a contact information in lufi.conf!' unless (defined($self->config('contact')));
die 'You need to provide a **report** information in lufi.conf!' unless (defined($self->config('report')));
if (Email::Valid->address($self->config('report'))) {
$self->config('report' => 'mailto:'.$self->config('report'));
} elsif (!is_web_uri($self->config('report'))) {
die 'You need to provide an email address or an URL as report information in lufi.conf!';
}
# Themes handling
shift @{$self->renderer->paths};
......
......@@ -18,8 +18,14 @@
},
# put a way to contact you here and uncomment it
# you can put some HTML in it
# MANDATORY
#contact => 'admin[at]example.com',
#contact => '<a href="https://contact.example.com">Contact page</a>',
# put an URL or an email address to receive file reports and uncomment it
# it's for make reporting illegal files easy for users
# MANDATORY
#report => 'report@example.com',
# array of random strings used to encrypt cookies
# optional, default is ['fdjsofjoihrei'], PLEASE, CHANGE IT
......
......@@ -44,7 +44,7 @@ msgstr "Un agraïment amb la foto d'un gatet a <a href=\"https://framasphere.org
msgid "Abort"
msgstr "Avorta"
#: themes/default/templates/layouts/default.html.ep:35 themes/default/templates/layouts/default.html.ep:47
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:49
msgid "About"
msgstr "Quant a"
......@@ -266,7 +266,7 @@ msgstr "Teniu el javascript deactivat. No podreu usar Lufi."
msgid "Login"
msgstr "Entrada"
#: themes/default/templates/layouts/default.html.ep:37 themes/default/templates/layouts/default.html.ep:49
#: themes/default/templates/layouts/default.html.ep:38 themes/default/templates/layouts/default.html.ep:51
msgid "Logout"
msgstr "Sortida"
......@@ -278,7 +278,7 @@ msgstr "Lufi és programari lliure d'allotjament de fitxers."
msgid "Mail"
msgstr ""
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:43
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:32 themes/default/templates/layouts/default.html.ep:45
msgid "My files"
msgstr "Els meus fitxers"
......@@ -320,6 +320,10 @@ msgstr "Privacitat"
msgid "Purge expired files from localStorage"
msgstr "Netegeu els fitxers expirats de l'emmagatzematge local."
#: themes/default/templates/layouts/default.html.ep:29 themes/default/templates/layouts/default.html.ep:42
msgid "Report file"
msgstr ""
#: themes/default/templates/files.html.ep:9
msgid "Rows in red mean that the files have expired and are no longer available."
msgstr "Les files en vermell indiquen que els fitxers han expirat i ja no són disponibles."
......@@ -345,7 +349,7 @@ msgstr "S'està enviant el tros XX1 de XX2. Si us plau, paciència; la barra de
msgid "Share your files in total privacy on %1"
msgstr "Compartiu fitxers amb total privacitat a %1"
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:45 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
#: themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:47 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
msgid "Signin"
msgstr "Autenticació"
......@@ -431,7 +435,7 @@ msgstr "No he pogut obtenir el comptador de %1. El testimoni no és vàlid."
msgid "Unable to get counter for %1. You are not authenticated."
msgstr "No he pogut obtenir el comptador de %1. No esteu autenticat."
#: themes/default/templates/layouts/default.html.ep:30 themes/default/templates/layouts/default.html.ep:42
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:44
msgid "Upload files"
msgstr "Pujar fitxers"
......
......@@ -41,7 +41,7 @@ msgstr ""
msgid "Abort"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:35 themes/default/templates/layouts/default.html.ep:47
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:49
msgid "About"
msgstr ""
......@@ -262,7 +262,7 @@ msgstr ""
msgid "Login"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:37 themes/default/templates/layouts/default.html.ep:49
#: themes/default/templates/layouts/default.html.ep:38 themes/default/templates/layouts/default.html.ep:51
msgid "Logout"
msgstr ""
......@@ -274,7 +274,7 @@ msgstr ""
msgid "Mail"
msgstr ""
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:43
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:32 themes/default/templates/layouts/default.html.ep:45
msgid "My files"
msgstr ""
......@@ -316,6 +316,10 @@ msgstr ""
msgid "Purge expired files from localStorage"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:29 themes/default/templates/layouts/default.html.ep:42
msgid "Report file"
msgstr ""
#: themes/default/templates/files.html.ep:9
msgid "Rows in red mean that the files have expired and are no longer available."
msgstr ""
......@@ -341,7 +345,7 @@ msgstr ""
msgid "Share your files in total privacy on %1"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:45 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
#: themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:47 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
msgid "Signin"
msgstr ""
......@@ -425,7 +429,7 @@ msgstr ""
msgid "Unable to get counter for %1. You are not authenticated."
msgstr ""
#: themes/default/templates/layouts/default.html.ep:30 themes/default/templates/layouts/default.html.ep:42
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:44
msgid "Upload files"
msgstr ""
......
......@@ -43,7 +43,7 @@ msgstr "Un merci avec une photo de chaton sur <a href=\"https://framasphere.org/
msgid "Abort"
msgstr "Abandonner"
#: themes/default/templates/layouts/default.html.ep:35 themes/default/templates/layouts/default.html.ep:47
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:49
msgid "About"
msgstr "À propos"
......@@ -264,7 +264,7 @@ msgstr "Javascript est désactivé. Lufi ne fonctionnera pas."
msgid "Login"
msgstr "Identifiant"
#: themes/default/templates/layouts/default.html.ep:37 themes/default/templates/layouts/default.html.ep:49
#: themes/default/templates/layouts/default.html.ep:38 themes/default/templates/layouts/default.html.ep:51
msgid "Logout"
msgstr "Déconnexion"
......@@ -276,7 +276,7 @@ msgstr "Lufi est un logiciel libre d’hébergement de fichiers."
msgid "Mail"
msgstr "Mail"
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:43
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:32 themes/default/templates/layouts/default.html.ep:45
msgid "My files"
msgstr "Mes fichiers"
......@@ -318,6 +318,10 @@ msgstr "Confidentialité"
msgid "Purge expired files from localStorage"
msgstr "Supprimer du localStorage les fichiers expirés"
#: themes/default/templates/layouts/default.html.ep:29 themes/default/templates/layouts/default.html.ep:42
msgid "Report file"
msgstr "Signaler un fichier"
#: themes/default/templates/files.html.ep:9
msgid "Rows in red mean that the files have expired and are no longer available."
msgstr "Les lignes en rouge indiquent que le fichier a expiré et n’est plus disponible."
......@@ -343,7 +347,7 @@ msgstr "Envoi du fragment XX1 sur XX2. Veuillez patienter, la barre de progressi
msgid "Share your files in total privacy on %1"
msgstr "Partagez vos fichiers en toute confidentialité sur %1"
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:45 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
#: themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:47 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
msgid "Signin"
msgstr "Connexion"
......@@ -431,7 +435,7 @@ msgstr "Impossible de récupérer le compteur pour %1. Le jeton est invalide."
msgid "Unable to get counter for %1. You are not authenticated."
msgstr "Impossible de récupérer le compteur pour %1. Vous n’êtes pas connecté·e."
#: themes/default/templates/layouts/default.html.ep:30 themes/default/templates/layouts/default.html.ep:42
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:44
msgid "Upload files"
msgstr "Envoyer des fichiers"
......
......@@ -43,7 +43,7 @@ msgstr "Un grazie con una foto di un gattino sur <a href=\"https://framasphere.o
msgid "Abort"
msgstr "Annulla"
#: themes/default/templates/layouts/default.html.ep:35 themes/default/templates/layouts/default.html.ep:47
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:49
msgid "About"
msgstr "A proposito"
......@@ -264,7 +264,7 @@ msgstr "Javascript è disattivato. Lufi non può funzionare."
msgid "Login"
msgstr "Login"
#: themes/default/templates/layouts/default.html.ep:37 themes/default/templates/layouts/default.html.ep:49
#: themes/default/templates/layouts/default.html.ep:38 themes/default/templates/layouts/default.html.ep:51
msgid "Logout"
msgstr "Logout"
......@@ -276,7 +276,7 @@ msgstr "Lufi è un software libero di file hosting."
msgid "Mail"
msgstr ""
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:43
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:32 themes/default/templates/layouts/default.html.ep:45
msgid "My files"
msgstr "I miei file"
......@@ -318,6 +318,10 @@ msgstr "Riservatezza"
msgid "Purge expired files from localStorage"
msgstr "Eliminare dal localStorage i file scaduti"
#: themes/default/templates/layouts/default.html.ep:29 themes/default/templates/layouts/default.html.ep:42
msgid "Report file"
msgstr ""
#:
msgid "Rows in purple mean that the files have expired and are no longer available."
msgstr "Le righe in viola indicano che il file è scaduto e non è più disponibile."
......@@ -347,7 +351,7 @@ msgstr "Invio della parte XX1 su XX2. Prego attendere, la barra di avanzamento p
msgid "Share your files in total privacy on %1"
msgstr "Condividi tutti i file in totale riservatezza su %1"
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:45 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
#: themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:47 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
msgid "Signin"
msgstr "Autenticazione"
......@@ -435,7 +439,7 @@ msgstr "Impossibile recuperare il contatore per %1. Il token non è valido."
msgid "Unable to get counter for %1. You are not authenticated."
msgstr "Impossibile recuperare il contatore per %1. Non sei autenticato."
#: themes/default/templates/layouts/default.html.ep:30 themes/default/templates/layouts/default.html.ep:42
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:44
msgid "Upload files"
msgstr "Invio dei file"
......
......@@ -30,7 +30,7 @@ msgstr "Een bedankt foto met een katje op <a href=\"https://framasphere.org/peop
msgid "Abort"
msgstr "Annuleren"
#: themes/default/templates/layouts/default.html.ep:35 themes/default/templates/layouts/default.html.ep:47
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:49
msgid "About"
msgstr "Over"
......@@ -251,7 +251,7 @@ msgstr "Javascript is uitgeschakeld. Je kan geen gebruik maken van Lufi."
msgid "Login"
msgstr "Login"
#: themes/default/templates/layouts/default.html.ep:37 themes/default/templates/layouts/default.html.ep:49
#: themes/default/templates/layouts/default.html.ep:38 themes/default/templates/layouts/default.html.ep:51
msgid "Logout"
msgstr "Logout"
......@@ -263,7 +263,7 @@ msgstr "Lufi is een gratis bestand hosting software."
msgid "Mail"
msgstr ""
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:43
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:32 themes/default/templates/layouts/default.html.ep:45
msgid "My files"
msgstr "Mijn bestanden"
......@@ -309,6 +309,10 @@ msgstr "Verwijder verlopen data"
msgid "Register"
msgstr "Registreer"
#: themes/default/templates/layouts/default.html.ep:29 themes/default/templates/layouts/default.html.ep:42
msgid "Report file"
msgstr ""
#: themes/default/templates/files.html.ep:9
msgid "Rows in red mean that the files have expired and are no longer available."
msgstr "Rode rijen betekenen dat deze bestanden verlopen en verwijderd zijn."
......@@ -334,7 +338,7 @@ msgstr "Versturen deel XX1 van XX2. Een ogenblik geduld..."
msgid "Share your files in total privacy on %1"
msgstr "Deel je bestanden met volledige privacy op %1"
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:45 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
#: themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:47 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
msgid "Signin"
msgstr "Inloggen"
......@@ -418,7 +422,7 @@ msgstr "Kan geen teller verkrijgen voor %1. De token is ongeldig."
msgid "Unable to get counter for %1. You are not authenticated."
msgstr "Kan geen teller verkrijgen voor %1. Je bent niet geauthenticeerd."
#: themes/default/templates/layouts/default.html.ep:30 themes/default/templates/layouts/default.html.ep:42
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:44
msgid "Upload files"
msgstr "Upload bestanden"
......
......@@ -43,7 +43,7 @@ msgstr "Un mercé amb una fotografia de caton sus <a href=\"https://framasphere.
msgid "Abort"
msgstr "Anullar"
#: themes/default/templates/layouts/default.html.ep:35 themes/default/templates/layouts/default.html.ep:47
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:49
msgid "About"
msgstr "A prepaus"
......@@ -264,7 +264,7 @@ msgstr "Javascript es desactivat. Lufi foncionarà pas."
msgid "Login"
msgstr "Identificant"
#: themes/default/templates/layouts/default.html.ep:37 themes/default/templates/layouts/default.html.ep:49
#: themes/default/templates/layouts/default.html.ep:38 themes/default/templates/layouts/default.html.ep:51
msgid "Logout"
msgstr "Desconnexion"
......@@ -276,7 +276,7 @@ msgstr "Lufi es un logicial liure d’albèrgament de fichièrs."
msgid "Mail"
msgstr "Corrièl"
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:43
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:32 themes/default/templates/layouts/default.html.ep:45
msgid "My files"
msgstr "Mos fichièrs"
......@@ -322,6 +322,10 @@ msgstr "Confidencialitat"
msgid "Purge expired files from localStorage"
msgstr "Suprimir del localStorage los fichièrs expirats"
#: themes/default/templates/layouts/default.html.ep:29 themes/default/templates/layouts/default.html.ep:42
msgid "Report file"
msgstr ""
#: themes/default/templates/files.html.ep:9
msgid "Rows in red mean that the files have expired and are no longer available."
msgstr "Las linhas en roge indican que lo fichièr a expirat e es pas mai disponible."
......@@ -347,7 +351,7 @@ msgstr "Mandadís del fragment XX1 sus XX2. Pacientatz, la barra de progression
msgid "Share your files in total privacy on %1"
msgstr "Partejatz vòstres fichièrs en tota confidencialitat sus %1"
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:45 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
#: themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:47 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
msgid "Signin"
msgstr "Connexion"
......@@ -435,7 +439,7 @@ msgstr "Impossible de recuperar lo comptador per %1. Lo geton es invalid."
msgid "Unable to get counter for %1. You are not authenticated."
msgstr "Impossible de recuperar lo comptador per %1. Sètz pas connectat·ada."
#: themes/default/templates/layouts/default.html.ep:30 themes/default/templates/layouts/default.html.ep:42
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:44
msgid "Upload files"
msgstr "Mandar de fichièrs"
......
......@@ -44,7 +44,7 @@ msgstr "Um obrigado com a foto de um gatinho no <a href=\"https://framasphere.or
msgid "Abort"
msgstr "Interromper"
#: themes/default/templates/layouts/default.html.ep:35 themes/default/templates/layouts/default.html.ep:47
#: themes/default/templates/layouts/default.html.ep:36 themes/default/templates/layouts/default.html.ep:49
msgid "About"
msgstr "Sobre"
......@@ -273,7 +273,7 @@ msgstr "Javascript está desativado. Lufi não funcionará."
msgid "Login"
msgstr "Utilizador"
#: themes/default/templates/layouts/default.html.ep:37 themes/default/templates/layouts/default.html.ep:49
#: themes/default/templates/layouts/default.html.ep:38 themes/default/templates/layouts/default.html.ep:51
msgid "Logout"
msgstr "Encerrar sessão"
......@@ -285,7 +285,7 @@ msgstr "Lufi é um programa de reserva gratuita (como na liberdade de expressão
msgid "Mail"
msgstr ""
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:43
#: themes/default/templates/files.html.ep:3 themes/default/templates/layouts/default.html.ep:32 themes/default/templates/layouts/default.html.ep:45
msgid "My files"
msgstr "Meus ficheiros"
......@@ -327,6 +327,10 @@ msgstr "Privacidade"
msgid "Purge expired files from localStorage"
msgstr "Apagar do localStorage os ficheiros expirados"
#: themes/default/templates/layouts/default.html.ep:29 themes/default/templates/layouts/default.html.ep:42
msgid "Report file"
msgstr ""
#: themes/default/templates/files.html.ep:9
msgid "Rows in red mean that the files have expired and are no longer available."
msgstr "As linhas a vermelho indicam que o ficheiro expirou e já não está disponível."
......@@ -352,7 +356,7 @@ msgstr "Envio do fragmento XX1 de XX2. Por favor aguarde, a barra de progressão
msgid "Share your files in total privacy on %1"
msgstr "Partilhe os seus ficheiros com toda a privacidade em %1"
#: themes/default/templates/layouts/default.html.ep:33 themes/default/templates/layouts/default.html.ep:45 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
#: themes/default/templates/layouts/default.html.ep:34 themes/default/templates/layouts/default.html.ep:47 themes/default/templates/login.html.ep:26 themes/default/templates/logout.html.ep:8
msgid "Signin"
msgstr "Conexão"
......@@ -436,7 +440,7 @@ msgstr "Impossível recuperar o contador para %1. O símbolo é inválido."
msgid "Unable to get counter for %1. You are not authenticated."
msgstr "Impossível recuperar o contador para %1. Não está conectado."
#: themes/default/templates/layouts/default.html.ep:30 themes/default/templates/layouts/default.html.ep:42
#: themes/default/templates/layouts/default.html.ep:31 themes/default/templates/layouts/default.html.ep:44
msgid "Upload files"
msgstr "Enviar os ficheiros"
......
......@@ -10,7 +10,7 @@
<p><%= l('Drag and drop files in the appropriate area or use the traditional way to send files and the files will be chunked, encrypted and sent to the server. You will get two links per file: a download link, that you give to the people you want to share the file with and a deletion link, allowing you to delete the file whenever you want.') %></p>
<p><%= l('You can see the list of your files by clicking on the "My files" link at the top right of this page.') %></p>
<h3><%= l('How to report an illegal file?') %></h3>
<p><%= l('Please contact the administrator: %1', config('contact')) %></p>
<p><%== l('Please contact the administrator: %1', config('contact')) %></p>
<h3><%= l('Who wrote this software?') %></h3>
<p><%== l('The original (and only for now) author is <a href="https://fiat-tux.fr" class="classic">Luc Didry</a>. If you want to support him, you can do it via <a href="https://www.tipeee.com/fiat-tux" class="classic">Tipeee</a> or via <a href="https://liberapay.com/sky/" class="classic">Liberapay</a>.') %><br>
<%== l('A thank you with a photo of kitten on <a href="https://framasphere.org/people/b13eb6b0beac0131e7e32a0000053625" class="classic">Diaspora*</a> or <a href="https://framapiaf.org/@framasky" class="classic">Mastodon</a> is cool too ;-)') %></p>
......
......@@ -26,6 +26,7 @@
<a href="<%= url_for('/') %>" class="brand-logo">&nbsp;<img src="<%= url_for('/img/lufi-min.png') %>" alt="logo"> Lufi</a>
<a href="#" data-activates="mobile" class="button-collapse"><i class="mdi-navigation-menu"></i></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
<li><a href="<%= $self->config('report') %>"><%= l('Report file') %></a></li>
% if ((!defined(config('ldap')) && !defined(config('htpasswd'))) || is_user_authenticated()) {
<li<%== ' class="active"' if (current_route eq 'index') %>><a href="<%= url_for('/') %>"><%= l('Upload files') %></a></li>
<li<%== ' class="active"' if (current_route eq 'files') %>><a href="<%= url_for('/files') %>"><%= l('My files') %></a></li>
......@@ -38,6 +39,7 @@
% }
</ul>
<ul id="mobile" class="side-nav">
<li><a href="<%= $self->config('report') %>"><%= l('Report file') %></a></li>
% if ((!defined(config('ldap')) && !defined(config('htpasswd'))) || is_user_authenticated()) {
<li<%== ' class="active"' if (current_route eq 'index') %>><a href="<%= url_for('/') %>"><%= l('Upload files') %></a></li>
<li<%== ' class="active"' if (current_route eq 'files') %>><a href="<%= url_for('/files') %>"><%= l('My files') %></a></li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment