', cleanName(file.name), '
',
'
',
'
',
' 0%',
@@ -340,6 +349,7 @@
'
'
].join(''));
}
+ data.msg.filename = cleanName(data.msg.filename);
$('.messages').append(buildMessage(data.success, data.msg));
if (data.success) {
$('.close').unbind('click', evaluateCopyAll);
@@ -448,7 +458,6 @@
function onPaste(e) {
var items = e.clipboardData.items;
for(var i = 0; i < items.length; i++) {
- console.log('toto');
var item = items[i];
if (/image/.test(item.type)) {
var file = item.getAsFile();
From b7e799353f6b76416ccf4950d150a1d8eac202d4 Mon Sep 17 00:00:00 2001
From: Luc Didry
Date: Thu, 8 Jun 2017 21:24:47 +0200
Subject: [PATCH 29/38] Add stats in JSON format
---
.gitignore | 1 +
CHANGELOG | 1 +
lib/Lutim/Command/cron/stats.pm | 37 ++++++++++++++++++++++++++++-
themes/default/lib/Lutim/I18N/de.po | 18 +++++++-------
themes/default/lib/Lutim/I18N/en.po | 18 +++++++-------
themes/default/lib/Lutim/I18N/es.po | 18 +++++++-------
themes/default/lib/Lutim/I18N/fr.po | 18 +++++++-------
themes/default/lib/Lutim/I18N/oc.po | 18 +++++++-------
8 files changed, 83 insertions(+), 46 deletions(-)
diff --git a/.gitignore b/.gitignore
index 8850a34..e75e722 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,5 +12,6 @@ themes/*
!themes/default/*
themes/default/templates/data.html.ep
themes/default/templates/raw.html.ep
+themes/default/templates/stats.json.ep
themes/default/public/packed/*
tmp/
diff --git a/CHANGELOG b/CHANGELOG
index 572363e..5c12f69 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -14,6 +14,7 @@ Revision history for Lutim
- LocalStorage is now updated if an image's delay is modified
- Allow user to paste image from clipboard to upload images (#14 and !5)
- Fix #40
+ - Add stats in JSON format (GET /stats.json)
0.7.1 2016-06-21
- Fix dependency bug
diff --git a/lib/Lutim/Command/cron/stats.pm b/lib/Lutim/Command/cron/stats.pm
index 5760723..ca4f85e 100644
--- a/lib/Lutim/Command/cron/stats.pm
+++ b/lib/Lutim/Command/cron/stats.pm
@@ -4,10 +4,12 @@ use Mojo::Base 'Mojolicious::Command';
use Mojo::DOM;
use Mojo::Util qw(encode);
use Mojo::File;
+use Mojo::JSON qw(encode_json);
use Lutim::DB::Image;
use DateTime;
use FindBin qw($Bin);
use File::Spec qw(catfile);
+use POSIX;
has description => 'Generate statistics about Lutim.';
has usage => sub { shift->extract_usage };
@@ -36,6 +38,9 @@ sub run {
$config->{theme} = 'default';
$template = 'themes/'.$config->{theme}.'/templates/data.html.ep.template';
}
+
+ my $stats = {};
+
my $text = Mojo::File->new($template)->slurp;
my $dom = Mojo::DOM->new($text);
my $thead_tr = $dom->at('table thead tr');
@@ -46,7 +51,13 @@ sub run {
my %data;
my $img = Lutim::DB::Image->new(app => $c->app);
- $img->select_created_after($separation)->each(
+ my $sca = $img->select_created_after($separation);
+
+ $stats->{total} = $img->count_not_empty;
+ $stats->{average} = floor($sca->size / $config->{stats_day_num}) if $config->{stats_day_num};
+ $stats->{for_days} = $config->{stats_day_num};
+
+ $sca->each(
sub {
my ($e, $num) = @_;
my $time = DateTime->from_epoch(epoch => $e->created_at);
@@ -72,6 +83,8 @@ sub run {
}
}
+ my $moy = $total / $config->{stats_day_num};
+
# Raw datas
my $template2 = 'themes/'.$config->{theme}.'/templates/raw.html.ep.template';
unless (-e $template2) {
@@ -94,6 +107,27 @@ sub run {
my $year_disabled = $img->count_delete_at_day_endis(365, 0);
my $year_disabled_in_month = $img->count_delete_at_day_endis(365, 1, time - 335 * 86400);
+ $stats->{unlimited} = {
+ enabled => $unlimited_enabled,
+ disabled => $unlimited_disabled
+ };
+ $stats->{day} = {
+ enabled => $day_enabled,
+ disabled => $day_disabled
+ };
+ $stats->{week} = {
+ enabled => $week_enabled,
+ disabled => $week_disabled
+ };
+ $stats->{month} = {
+ enabled => $month_enabled,
+ disabled => $month_disabled
+ };
+ $stats->{year} = {
+ enabled => $year_enabled,
+ disabled => $year_disabled
+ };
+
my $year_disabled_in_month_pct = ($year_enabled != 0) ? " (".sprintf('%.2f', $year_disabled_in_month/$year_enabled)."%)" : '';
$raw->append_content("\n| <%= \$raw[4] %> | ".$unlimited_enabled." | ".$unlimited_disabled." | ø |
\n");
@@ -156,6 +190,7 @@ Morris.Donut({
$dom2
EOF
+ Mojo::File->new('themes/'.$config->{theme}.'/templates/stats.json.ep')->spurt(encode_json($stats));
Mojo::File->new('themes/'.$config->{theme}.'/templates/data.html.ep')->spurt($dom);
Mojo::File->new('themes/'.$config->{theme}.'/templates/raw.html.ep')->spurt(encode('UTF-8', $dom2));
}
diff --git a/themes/default/lib/Lutim/I18N/de.po b/themes/default/lib/Lutim/I18N/de.po
index db3a541..7bc1f0a 100644
--- a/themes/default/lib/Lutim/I18N/de.po
+++ b/themes/default/lib/Lutim/I18N/de.po
@@ -22,7 +22,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:115 lib/Lutim/Command/cron/stats.pm:116 lib/Lutim/Command/cron/stats.pm:126 lib/Lutim/Command/cron/stats.pm:127 lib/Lutim/Command/cron/stats.pm:143 lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 Tage"
@@ -35,11 +35,11 @@ msgstr "%1 Bilder wurden bisher über diese Instanz versendet."
msgid "-or-"
msgstr "-oder-"
-#: lib/Lutim/Command/cron/stats.pm:117 lib/Lutim/Command/cron/stats.pm:128 lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 Jahr"
-#: lib/Lutim/Command/cron/stats.pm:114 lib/Lutim/Command/cron/stats.pm:125 lib/Lutim/Command/cron/stats.pm:142 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 Stunden"
@@ -47,7 +47,7 @@ msgstr "24 Stunden"
msgid ": Error while trying to get the counter."
msgstr ":Fehler beim Abrufen des Zählers."
-#: lib/Lutim/Command/cron/stats.pm:110 themes/default/templates/raw.html.ep:3
+#: lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/raw.html.ep:3
msgid "Active images"
msgstr ""
@@ -95,11 +95,11 @@ msgstr ""
msgid "Delete at first view?"
msgstr "Nach erstem Aufruf löschen?"
-#: lib/Lutim/Command/cron/stats.pm:111 themes/default/templates/raw.html.ep:4
+#: lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/raw.html.ep:4
msgid "Deleted images"
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:112 themes/default/templates/raw.html.ep:5
+#: lib/Lutim/Command/cron/stats.pm:146 themes/default/templates/raw.html.ep:5
msgid "Deleted images in 30 days"
msgstr ""
@@ -187,7 +187,7 @@ msgstr "Wenn du versuchst, ein Bild während dem Hochladen zu löschen, wird die
msgid "Image URL"
msgstr "Bild-URL"
-#: lib/Lutim/Command/cron/stats.pm:109 themes/default/templates/raw.html.ep:2
+#: lib/Lutim/Command/cron/stats.pm:143 themes/default/templates/raw.html.ep:2
msgid "Image delay"
msgstr ""
@@ -386,7 +386,7 @@ msgstr "Es sind keine URLs mehr verfügbar. Versuche es erneut oder kontaktiere
msgid "Tipeee button"
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:118 themes/default/templates/raw.html.ep:11
+#: lib/Lutim/Command/cron/stats.pm:152 themes/default/templates/raw.html.ep:11
msgid "Total"
msgstr ""
@@ -468,7 +468,7 @@ msgstr "und auf"
msgid "core developer"
msgstr "Haupt-Entwickler"
-#: lib/Lutim/Command/cron/stats.pm:113 lib/Lutim/Command/cron/stats.pm:124 lib/Lutim/Command/cron/stats.pm:141 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "keine Zeit-Begrenzung"
diff --git a/themes/default/lib/Lutim/I18N/en.po b/themes/default/lib/Lutim/I18N/en.po
index 62556ae..1fbaf7e 100644
--- a/themes/default/lib/Lutim/I18N/en.po
+++ b/themes/default/lib/Lutim/I18N/en.po
@@ -20,7 +20,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:115 lib/Lutim/Command/cron/stats.pm:116 lib/Lutim/Command/cron/stats.pm:126 lib/Lutim/Command/cron/stats.pm:127 lib/Lutim/Command/cron/stats.pm:143 lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr ""
@@ -33,11 +33,11 @@ msgstr "%1 sent images on this instance from beginning."
msgid "-or-"
msgstr "-or-"
-#: lib/Lutim/Command/cron/stats.pm:117 lib/Lutim/Command/cron/stats.pm:128 lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 year"
-#: lib/Lutim/Command/cron/stats.pm:114 lib/Lutim/Command/cron/stats.pm:125 lib/Lutim/Command/cron/stats.pm:142 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 hours"
@@ -45,7 +45,7 @@ msgstr "24 hours"
msgid ": Error while trying to get the counter."
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:110 themes/default/templates/raw.html.ep:3
+#: lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/raw.html.ep:3
msgid "Active images"
msgstr ""
@@ -93,11 +93,11 @@ msgstr ""
msgid "Delete at first view?"
msgstr "Delete at first view?"
-#: lib/Lutim/Command/cron/stats.pm:111 themes/default/templates/raw.html.ep:4
+#: lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/raw.html.ep:4
msgid "Deleted images"
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:112 themes/default/templates/raw.html.ep:5
+#: lib/Lutim/Command/cron/stats.pm:146 themes/default/templates/raw.html.ep:5
msgid "Deleted images in 30 days"
msgstr ""
@@ -185,7 +185,7 @@ msgstr "If the files are deleted if you ask it while posting it, their SHA512 fo
msgid "Image URL"
msgstr "Image URL"
-#: lib/Lutim/Command/cron/stats.pm:109 themes/default/templates/raw.html.ep:2
+#: lib/Lutim/Command/cron/stats.pm:143 themes/default/templates/raw.html.ep:2
msgid "Image delay"
msgstr ""
@@ -382,7 +382,7 @@ msgstr "There is no more available URL. Retry or contact the administrator. %1"
msgid "Tipeee button"
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:118 themes/default/templates/raw.html.ep:11
+#: lib/Lutim/Command/cron/stats.pm:152 themes/default/templates/raw.html.ep:11
msgid "Total"
msgstr ""
@@ -468,7 +468,7 @@ msgstr "and on"
msgid "core developer"
msgstr "core developer"
-#: lib/Lutim/Command/cron/stats.pm:113 lib/Lutim/Command/cron/stats.pm:124 lib/Lutim/Command/cron/stats.pm:141 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "no time limit"
diff --git a/themes/default/lib/Lutim/I18N/es.po b/themes/default/lib/Lutim/I18N/es.po
index bbb496f..081fd78 100644
--- a/themes/default/lib/Lutim/I18N/es.po
+++ b/themes/default/lib/Lutim/I18N/es.po
@@ -22,7 +22,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:115 lib/Lutim/Command/cron/stats.pm:116 lib/Lutim/Command/cron/stats.pm:126 lib/Lutim/Command/cron/stats.pm:127 lib/Lutim/Command/cron/stats.pm:143 lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 días"
@@ -35,11 +35,11 @@ msgstr "%1 imágenes enviadas a esta instancia desde el inicio."
msgid "-or-"
msgstr "-o-"
-#: lib/Lutim/Command/cron/stats.pm:117 lib/Lutim/Command/cron/stats.pm:128 lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 año"
-#: lib/Lutim/Command/cron/stats.pm:114 lib/Lutim/Command/cron/stats.pm:125 lib/Lutim/Command/cron/stats.pm:142 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 horas"
@@ -47,7 +47,7 @@ msgstr "24 horas"
msgid ": Error while trying to get the counter."
msgstr ": Error al intentar obtener el contador."
-#: lib/Lutim/Command/cron/stats.pm:110 themes/default/templates/raw.html.ep:3
+#: lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/raw.html.ep:3
msgid "Active images"
msgstr ""
@@ -95,11 +95,11 @@ msgstr ""
msgid "Delete at first view?"
msgstr "¿Borrar en la primera vista?"
-#: lib/Lutim/Command/cron/stats.pm:111 themes/default/templates/raw.html.ep:4
+#: lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/raw.html.ep:4
msgid "Deleted images"
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:112 themes/default/templates/raw.html.ep:5
+#: lib/Lutim/Command/cron/stats.pm:146 themes/default/templates/raw.html.ep:5
msgid "Deleted images in 30 days"
msgstr ""
@@ -187,7 +187,7 @@ msgstr "Si los ficheros se borran por haberlo solicitado al enviarlos, se retien
msgid "Image URL"
msgstr "URL de la imagen"
-#: lib/Lutim/Command/cron/stats.pm:109 themes/default/templates/raw.html.ep:2
+#: lib/Lutim/Command/cron/stats.pm:143 themes/default/templates/raw.html.ep:2
msgid "Image delay"
msgstr ""
@@ -384,7 +384,7 @@ msgstr "No más URL disponibles. Inténtelo de nuevo o contacte con el administr
msgid "Tipeee button"
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:118 themes/default/templates/raw.html.ep:11
+#: lib/Lutim/Command/cron/stats.pm:152 themes/default/templates/raw.html.ep:11
msgid "Total"
msgstr ""
@@ -466,7 +466,7 @@ msgstr "y en"
msgid "core developer"
msgstr "desarrollador principal"
-#: lib/Lutim/Command/cron/stats.pm:113 lib/Lutim/Command/cron/stats.pm:124 lib/Lutim/Command/cron/stats.pm:141 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "Sin tiempo límite"
diff --git a/themes/default/lib/Lutim/I18N/fr.po b/themes/default/lib/Lutim/I18N/fr.po
index fd5806c..d7c498c 100644
--- a/themes/default/lib/Lutim/I18N/fr.po
+++ b/themes/default/lib/Lutim/I18N/fr.po
@@ -22,7 +22,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:115 lib/Lutim/Command/cron/stats.pm:116 lib/Lutim/Command/cron/stats.pm:126 lib/Lutim/Command/cron/stats.pm:127 lib/Lutim/Command/cron/stats.pm:143 lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 jours"
@@ -35,11 +35,11 @@ msgstr "%1 images envoyées sur cette instance depuis le début."
msgid "-or-"
msgstr "-ou-"
-#: lib/Lutim/Command/cron/stats.pm:117 lib/Lutim/Command/cron/stats.pm:128 lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 an"
-#: lib/Lutim/Command/cron/stats.pm:114 lib/Lutim/Command/cron/stats.pm:125 lib/Lutim/Command/cron/stats.pm:142 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 heures"
@@ -47,7 +47,7 @@ msgstr "24 heures"
msgid ": Error while trying to get the counter."
msgstr " : Erreur en essayant de récupérer le compteur."
-#: lib/Lutim/Command/cron/stats.pm:110 themes/default/templates/raw.html.ep:3
+#: lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/raw.html.ep:3
msgid "Active images"
msgstr "Images actives"
@@ -95,11 +95,11 @@ msgstr "Graphe de répartition des délais pour les images actives"
msgid "Delete at first view?"
msgstr "Supprimer au premier accès ?"
-#: lib/Lutim/Command/cron/stats.pm:111 themes/default/templates/raw.html.ep:4
+#: lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/raw.html.ep:4
msgid "Deleted images"
msgstr "Images supprimées"
-#: lib/Lutim/Command/cron/stats.pm:112 themes/default/templates/raw.html.ep:5
+#: lib/Lutim/Command/cron/stats.pm:146 themes/default/templates/raw.html.ep:5
msgid "Deleted images in 30 days"
msgstr "Images supprimées dans 30 jours"
@@ -187,7 +187,7 @@ msgstr "Si les fichiers sont bien supprimés si vous en avez exprimé le choix,
msgid "Image URL"
msgstr "URL de l’image"
-#: lib/Lutim/Command/cron/stats.pm:109 themes/default/templates/raw.html.ep:2
+#: lib/Lutim/Command/cron/stats.pm:143 themes/default/templates/raw.html.ep:2
msgid "Image delay"
msgstr "Durée de rétention de l’image"
@@ -386,7 +386,7 @@ msgstr "Il n’y a plus d’URL disponible. Veuillez réessayer ou contacter l
msgid "Tipeee button"
msgstr "Bouton Tipeee"
-#: lib/Lutim/Command/cron/stats.pm:118 themes/default/templates/raw.html.ep:11
+#: lib/Lutim/Command/cron/stats.pm:152 themes/default/templates/raw.html.ep:11
msgid "Total"
msgstr "Total"
@@ -468,7 +468,7 @@ msgstr "et sur"
msgid "core developer"
msgstr "développeur principal"
-#: lib/Lutim/Command/cron/stats.pm:113 lib/Lutim/Command/cron/stats.pm:124 lib/Lutim/Command/cron/stats.pm:141 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "Pas de limitation de durée"
diff --git a/themes/default/lib/Lutim/I18N/oc.po b/themes/default/lib/Lutim/I18N/oc.po
index 72fd656..64977cb 100644
--- a/themes/default/lib/Lutim/I18N/oc.po
+++ b/themes/default/lib/Lutim/I18N/oc.po
@@ -21,7 +21,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:115 lib/Lutim/Command/cron/stats.pm:116 lib/Lutim/Command/cron/stats.pm:126 lib/Lutim/Command/cron/stats.pm:127 lib/Lutim/Command/cron/stats.pm:143 lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 jorns"
@@ -34,11 +34,11 @@ msgstr "%1 imatges mandats sus aquesta instància dempuèi lo començament."
msgid "-or-"
msgstr "-o-"
-#: lib/Lutim/Command/cron/stats.pm:117 lib/Lutim/Command/cron/stats.pm:128 lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 an"
-#: lib/Lutim/Command/cron/stats.pm:114 lib/Lutim/Command/cron/stats.pm:125 lib/Lutim/Command/cron/stats.pm:142 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 oras"
@@ -46,7 +46,7 @@ msgstr "24 oras"
msgid ": Error while trying to get the counter."
msgstr " : Error al moment de recuperar lo comptador."
-#: lib/Lutim/Command/cron/stats.pm:110 themes/default/templates/raw.html.ep:3
+#: lib/Lutim/Command/cron/stats.pm:144 themes/default/templates/raw.html.ep:3
msgid "Active images"
msgstr "Imatges actius"
@@ -94,11 +94,11 @@ msgstr "Grafic de despartiment dels delais pels imatges activats"
msgid "Delete at first view?"
msgstr "Suprimir al primièr accès ?"
-#: lib/Lutim/Command/cron/stats.pm:111 themes/default/templates/raw.html.ep:4
+#: lib/Lutim/Command/cron/stats.pm:145 themes/default/templates/raw.html.ep:4
msgid "Deleted images"
msgstr "Imatges suprimits"
-#: lib/Lutim/Command/cron/stats.pm:112 themes/default/templates/raw.html.ep:5
+#: lib/Lutim/Command/cron/stats.pm:146 themes/default/templates/raw.html.ep:5
msgid "Deleted images in 30 days"
msgstr "Imatges per èsser suprimits dins 30 jorns"
@@ -186,7 +186,7 @@ msgstr "Se los fichièrs son ben estats suprimits se o avètz demandat, lors sig
msgid "Image URL"
msgstr "URL de l'imatge"
-#: lib/Lutim/Command/cron/stats.pm:109 themes/default/templates/raw.html.ep:2
+#: lib/Lutim/Command/cron/stats.pm:143 themes/default/templates/raw.html.ep:2
msgid "Image delay"
msgstr "Delai de l'imatge"
@@ -383,7 +383,7 @@ msgstr "I a pas mai d'URL disponibla. Mercés de tornar ensajar o de contactar l
msgid "Tipeee button"
msgstr ""
-#: lib/Lutim/Command/cron/stats.pm:118 themes/default/templates/raw.html.ep:11
+#: lib/Lutim/Command/cron/stats.pm:152 themes/default/templates/raw.html.ep:11
msgid "Total"
msgstr "Total"
@@ -465,7 +465,7 @@ msgstr "e sus"
msgid "core developer"
msgstr "desvolopaire màger"
-#: lib/Lutim/Command/cron/stats.pm:113 lib/Lutim/Command/cron/stats.pm:124 lib/Lutim/Command/cron/stats.pm:141 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "Pas cap de limitacion de durada"
From 0cb82fee0bf58b6b6170fa044651c6581c38b434 Mon Sep 17 00:00:00 2001
From: Luc Didry
Date: Thu, 8 Jun 2017 23:13:46 +0200
Subject: [PATCH 30/38] Update .gitlab-ci.yml (add test-pg and podcheck)
---
.gitlab-ci.yml | 21 ++++++++++++++++++++-
1 file changed, 20 insertions(+), 1 deletion(-)
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3ce11b4..56eb08d 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,6 +1,7 @@
image: hatsoftwares/test-ci:latest
stages:
- sqlite
+ - postgresql
before_script:
- carton install
- rm -f *db
@@ -12,7 +13,25 @@ sqlite:
paths:
- local
script:
- - MOJO_CONFIG=t/sqlite.conf make test
+ - make podcheck
+ - make test-sqlite
tags:
- Debian
- Jessie
+postgresql:
+ stage: postgresql
+ cache:
+ key: "$CI_BUILD_REF_NAME"
+ untracked: true
+ paths:
+ - local
+ script:
+ - make podcheck
+ - service postgresql restart
+ - sleep 10
+ - service postgresql status
+ - make create-pg-test-db
+ - make test-pg
+ tags:
+ - Debian
+ - Jessie
\ No newline at end of file
From 54374765e7cdf00845640a80e344f2220702aab1 Mon Sep 17 00:00:00 2001
From: Luc Didry
Date: Thu, 8 Jun 2017 23:15:32 +0200
Subject: [PATCH 31/38] Update .gitignore
---
.gitignore | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.gitignore b/.gitignore
index e75e722..75fbd9c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -14,4 +14,4 @@ themes/default/templates/data.html.ep
themes/default/templates/raw.html.ep
themes/default/templates/stats.json.ep
themes/default/public/packed/*
-tmp/
+tmp/*
From 2a0f2ef4a2b2b74db26b11a88c9ab8c7b6a22e2d Mon Sep 17 00:00:00 2001
From: Luc Didry
Date: Sun, 11 Jun 2017 11:22:15 +0200
Subject: [PATCH 32/38] Improve cache (and so, load speed)
- Add Cache-control headers for static files
- Put almost all js/css stuff outside template
---
CHANGELOG | 2 +
Makefile | 10 +-
lib/Lutim.pm | 31 +-
lib/Mounter.pm | 4 +
themes/default/lib/Lutim/I18N/de.po | 68 +-
themes/default/lib/Lutim/I18N/en.po | 68 +-
themes/default/lib/Lutim/I18N/es.po | 68 +-
themes/default/lib/Lutim/I18N/fr.po | 68 +-
themes/default/lib/Lutim/I18N/oc.po | 68 +-
.../public/gallery/css/unite-gallery.css | 62 +-
.../themes/default/ug-theme-default.css | 10 +-
themes/default/templates/gallery.html.ep | 37 -
themes/default/templates/index.html.ep | 3 -
.../default/templates/layouts/default.html.ep | 30 +-
themes/default/templates/myfiles.html.ep | 65 --
themes/default/templates/partial/common.js.ep | 286 +++---
.../default/templates/partial/gallery.js.ep | 30 +
themes/default/templates/partial/lutim.js.ep | 820 +++++++++---------
.../default/templates/partial/myfiles.js.ep | 61 ++
19 files changed, 914 insertions(+), 877 deletions(-)
create mode 100644 themes/default/templates/partial/gallery.js.ep
create mode 100644 themes/default/templates/partial/myfiles.js.ep
diff --git a/CHANGELOG b/CHANGELOG
index 5c12f69..47e0f45 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -15,6 +15,8 @@ Revision history for Lutim
- Allow user to paste image from clipboard to upload images (#14 and !5)
- Fix #40
- Add stats in JSON format (GET /stats.json)
+ - Add Cache-control headers for static files
+ - Put almost all js/css stuff outside templates
0.7.1 2016-06-21
- Fix dependency bug
diff --git a/Makefile b/Makefile
index 05f6844..7466378 100644
--- a/Makefile
+++ b/Makefile
@@ -30,13 +30,21 @@ test: podcheck test-sqlite test-pg
clean:
rm -rf lutim.db files/
-dev:
+rmassets:
rm -rf themes/default/public/packed/*
+
+dev: rmassets
$(CARTON) morbo $(LUTIM) --listen http://0.0.0.0:3000 --watch lib/ --watch script/ --watch themes/ --watch lutim.conf
devlog:
multitail log/development.log
+prod: rmassets
+ $(CARTON) hypnotoad -f $(LUTIM)
+
+prodlog:
+ multitail log/production.log
+
create-pg-test-db:
sudo -u postgres psql -f t/create-pg-testdb.sql
diff --git a/lib/Lutim.pm b/lib/Lutim.pm
index e356406..3a99b58 100644
--- a/lib/Lutim.pm
+++ b/lib/Lutim.pm
@@ -109,15 +109,20 @@ sub startup {
delete @{$wait_for_it}{grep { time - $wait_for_it->{$_} > $c->config->{anti_flood_delay} } keys %{$wait_for_it}} if (defined($wait_for_it));
}
);
+ $self->hook(after_static => sub {
+ my $c = shift;
+ $c->res->headers->cache_control('max-age=2592000, must-revalidate');
+ });
$self->asset->store->paths($self->static->paths);
- $self->asset->process('index.css' => ('css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/animation.css', 'css/uploader.css', 'css/hennypenny.css', 'css/lutim.css', 'css/markdown.css'));
- $self->asset->process('stats.css' => ('css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/morris-0.4.3.min.css', 'css/hennypenny.css', 'css/lutim.css'));
- $self->asset->process('about.css' => ('css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/hennypenny.css', 'css/lutim.css'));
+ $self->asset->process('index.css' => ('css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/animation.css', 'css/uploader.css', 'css/hennypenny.css', 'css/lutim.css', 'css/markdown.css'));
+ $self->asset->process('stats.css' => ('css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/morris-0.4.3.min.css', 'css/hennypenny.css', 'css/lutim.css'));
+ $self->asset->process('about.css' => ('css/bootstrap.min.css', 'css/fontello-embedded.css', 'css/hennypenny.css', 'css/lutim.css'));
+ $self->asset->process('gallery.css' => ('/gallery/css/unite-gallery.css', '/gallery/themes/default/ug-theme-default.css'));
- $self->asset->process('index.js' => ('js/jquery-2.1.0.min.js', 'js/bootstrap.min.js', 'js/lutim.js', 'js/dmuploader.min.js'));
- $self->asset->process('stats.js' => ('js/jquery-2.1.0.min.js', 'js/bootstrap.min.js', 'js/lutim.js', 'js/raphael-min.js', 'js/morris-0.4.3.min.js', 'js/stats.js'));
- $self->asset->process('freeze.js' => ('js/jquery-2.1.0.min.js', 'js/freezeframe.min.js'));
+ $self->asset->process('index.js' => ('js/bootstrap.min.js', 'js/lutim.js', 'js/dmuploader.min.js'));
+ $self->asset->process('stats.js' => ('js/bootstrap.min.js', 'js/lutim.js', 'js/raphael-min.js', 'js/morris-0.4.3.min.js', 'js/stats.js'));
+ $self->asset->process('freeze.js' => ('js/jquery-2.1.0.min.js', 'js/freezeframe.min.js'));
$self->defaults(layout => 'default');
@@ -148,6 +153,20 @@ sub startup {
to('Controller#stats')->
name('stats');
+ $r->get('/partial/:file' => sub {
+ my $c = shift;
+ $c->render(
+ template => 'partial/'.$c->param('file'),
+ format => 'js',
+ layout => undef,
+ d => {
+ delay_0 => $c->l('no time limit'),
+ delay_1 => $c->l('24 hours'),
+ delay_365 => $c->l('1 year')
+ }
+ );
+ })->name('partial');
+
$r->get('/gallery' => sub {
shift->render(
template => 'gallery',
diff --git a/lib/Mounter.pm b/lib/Mounter.pm
index 58527d6..e8c44fa 100644
--- a/lib/Mounter.pm
+++ b/lib/Mounter.pm
@@ -42,6 +42,10 @@ sub startup {
}
push @{$self->static->paths}, $self->home->rel_file('themes/default/public');
+ $self->hook(after_static => sub {
+ my $c = shift;
+ $c->res->headers->cache_control('max-age=2592000, must-revalidate');
+ });
$self->plugin('Mount' => {$config->{prefix} => File::Spec->catfile($Bin, '..', 'script', 'application')});
}
diff --git a/themes/default/lib/Lutim/I18N/de.po b/themes/default/lib/Lutim/I18N/de.po
index 7bc1f0a..f7431b9 100644
--- a/themes/default/lib/Lutim/I18N/de.po
+++ b/themes/default/lib/Lutim/I18N/de.po
@@ -22,7 +22,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 Tage"
@@ -35,15 +35,15 @@ msgstr "%1 Bilder wurden bisher über diese Instanz versendet."
msgid "-or-"
msgstr "-oder-"
-#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim.pm:165 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 Jahr"
-#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim.pm:164 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 Stunden"
-#: themes/default/templates/myfiles.html.ep:123
+#: themes/default/templates/partial/myfiles.js.ep:57
msgid ": Error while trying to get the counter."
msgstr ":Fehler beim Abrufen des Zählers."
@@ -71,11 +71,11 @@ msgstr "Klicken um den Dateibrowser zu öffnen"
msgid "Contributors"
msgstr "Mitwirkende"
-#: themes/default/templates/partial/lutim.js.ep:215 themes/default/templates/partial/lutim.js.ep:269 themes/default/templates/partial/lutim.js.ep:347
+#: themes/default/templates/partial/lutim.js.ep:214 themes/default/templates/partial/lutim.js.ep:268 themes/default/templates/partial/lutim.js.ep:346
msgid "Copy all view links to clipboard"
msgstr "Alle Links zum Anschauen in die Zwischenablage kopieren"
-#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:151 themes/default/templates/partial/lutim.js.ep:106 themes/default/templates/partial/lutim.js.ep:121 themes/default/templates/partial/lutim.js.ep:80 themes/default/templates/partial/lutim.js.ep:92
+#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:150 themes/default/templates/partial/lutim.js.ep:105 themes/default/templates/partial/lutim.js.ep:120 themes/default/templates/partial/lutim.js.ep:79 themes/default/templates/partial/lutim.js.ep:91
msgid "Copy to clipboard"
msgstr "In die Zwischenablage kopieren"
@@ -91,7 +91,7 @@ msgstr ""
msgid "Delay repartition chart for enabled images"
msgstr ""
-#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:160
+#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:159
msgid "Delete at first view?"
msgstr "Nach erstem Aufruf löschen?"
@@ -103,7 +103,7 @@ msgstr ""
msgid "Deleted images in 30 days"
msgstr ""
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:143 themes/default/templates/partial/common.js.ep:146
+#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:142 themes/default/templates/partial/common.js.ep:145
msgid "Deletion link"
msgstr "Link zum Löschen"
@@ -111,7 +111,7 @@ msgstr "Link zum Löschen"
msgid "Download all images"
msgstr "Laden Sie alle Bilder"
-#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:102 themes/default/templates/partial/lutim.js.ep:98
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:101 themes/default/templates/partial/lutim.js.ep:97
msgid "Download link"
msgstr "Link zum Herunterladen"
@@ -131,7 +131,7 @@ msgstr "Ziehe Bilder in den dafür vorgesehenen Bereich und Lutim wird vier URLs
msgid "Encrypt the image (Lutim does not keep the key)."
msgstr "Verschlüssle das Bild (Lutim behält den Key nicht)"
-#: themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/partial/lutim.js.ep:44
msgid "Error while trying to modify the image."
msgstr "Beim bearbeiten des Bildes ist ein Fehler aufgetreten."
@@ -151,7 +151,7 @@ msgstr "Dateiname"
msgid "For more details, see the homepage of the project."
msgstr "Besuche für mehr Details die Homepage des Projekts."
-#: themes/default/templates/layouts/default.html.ep:49
+#: themes/default/templates/layouts/default.html.ep:55
msgid "Fork me!"
msgstr "Fork me!"
@@ -159,11 +159,11 @@ msgstr "Fork me!"
msgid "Gallery link"
msgstr "Link zur Galerie"
-#: themes/default/templates/partial/common.js.ep:105 themes/default/templates/partial/common.js.ep:88
+#: themes/default/templates/partial/common.js.ep:104 themes/default/templates/partial/common.js.ep:87
msgid "Hit Ctrl+C, then Enter to copy the short link"
msgstr "Drücke STRG+C und dann Enter um den Kurz-Link zu kopieren."
-#: themes/default/templates/layouts/default.html.ep:44
+#: themes/default/templates/layouts/default.html.ep:50
msgid "Homepage"
msgstr "Webseite"
@@ -195,15 +195,15 @@ msgstr ""
msgid "Image not found."
msgstr "Bild nicht gefunden"
-#: themes/default/templates/layouts/default.html.ep:48
+#: themes/default/templates/layouts/default.html.ep:54
msgid "Informations"
msgstr "Informationen"
-#: themes/default/templates/layouts/default.html.ep:56
+#: themes/default/templates/layouts/default.html.ep:62
msgid "Install webapp"
msgstr "Installiere die Webapp"
-#: themes/default/templates/layouts/default.html.ep:55
+#: themes/default/templates/layouts/default.html.ep:61
msgid "Instance's statistics"
msgstr ""
@@ -223,19 +223,19 @@ msgstr "Genauso wie das französische Wort res->max_message_size)
#. ($c->req->max_message_size)
-#. ($max_file_size)
-#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:241
+#. (config('max_file_size')
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:240
msgid "The file exceed the size limit (%1)"
msgstr "Die Datei überschreitet die Größenbeschränkung (%1)"
@@ -382,7 +382,7 @@ msgstr "Die Bilder, die du auf Lutim hochlädst, können entweder nie, nach dem
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "Es sind keine URLs mehr verfügbar. Versuche es erneut oder kontaktiere den Administrator. %1"
-#: themes/default/templates/layouts/default.html.ep:51
+#: themes/default/templates/layouts/default.html.ep:57
msgid "Tipeee button"
msgstr ""
@@ -390,7 +390,7 @@ msgstr ""
msgid "Total"
msgstr ""
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:15
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:14
msgid "Tweet it!"
msgstr "Twittere es!"
@@ -428,7 +428,7 @@ msgstr "Hochgeladene Bilder pro Tag"
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr "Hochladen ist momentan deaktiviert. Versuche es später erneut oder kontaktiere den Administrator (%1)."
-#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:72 themes/default/templates/partial/lutim.js.ep:76
+#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:71 themes/default/templates/partial/lutim.js.ep:75
msgid "View link"
msgstr "Link ansehen"
@@ -468,7 +468,7 @@ msgstr "und auf"
msgid "core developer"
msgstr "Haupt-Entwickler"
-#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim.pm:163 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "keine Zeit-Begrenzung"
diff --git a/themes/default/lib/Lutim/I18N/en.po b/themes/default/lib/Lutim/I18N/en.po
index 1fbaf7e..4110cc9 100644
--- a/themes/default/lib/Lutim/I18N/en.po
+++ b/themes/default/lib/Lutim/I18N/en.po
@@ -20,7 +20,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr ""
@@ -33,15 +33,15 @@ msgstr "%1 sent images on this instance from beginning."
msgid "-or-"
msgstr "-or-"
-#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim.pm:165 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 year"
-#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim.pm:164 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 hours"
-#: themes/default/templates/myfiles.html.ep:123
+#: themes/default/templates/partial/myfiles.js.ep:57
msgid ": Error while trying to get the counter."
msgstr ""
@@ -69,11 +69,11 @@ msgstr "Click to open the file browser"
msgid "Contributors"
msgstr "Contributors"
-#: themes/default/templates/partial/lutim.js.ep:215 themes/default/templates/partial/lutim.js.ep:269 themes/default/templates/partial/lutim.js.ep:347
+#: themes/default/templates/partial/lutim.js.ep:214 themes/default/templates/partial/lutim.js.ep:268 themes/default/templates/partial/lutim.js.ep:346
msgid "Copy all view links to clipboard"
msgstr ""
-#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:151 themes/default/templates/partial/lutim.js.ep:106 themes/default/templates/partial/lutim.js.ep:121 themes/default/templates/partial/lutim.js.ep:80 themes/default/templates/partial/lutim.js.ep:92
+#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:150 themes/default/templates/partial/lutim.js.ep:105 themes/default/templates/partial/lutim.js.ep:120 themes/default/templates/partial/lutim.js.ep:79 themes/default/templates/partial/lutim.js.ep:91
msgid "Copy to clipboard"
msgstr "Copy to clipboard"
@@ -89,7 +89,7 @@ msgstr ""
msgid "Delay repartition chart for enabled images"
msgstr ""
-#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:160
+#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:159
msgid "Delete at first view?"
msgstr "Delete at first view?"
@@ -101,7 +101,7 @@ msgstr ""
msgid "Deleted images in 30 days"
msgstr ""
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:143 themes/default/templates/partial/common.js.ep:146
+#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:142 themes/default/templates/partial/common.js.ep:145
msgid "Deletion link"
msgstr "Deletion link"
@@ -109,7 +109,7 @@ msgstr "Deletion link"
msgid "Download all images"
msgstr ""
-#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:102 themes/default/templates/partial/lutim.js.ep:98
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:101 themes/default/templates/partial/lutim.js.ep:97
msgid "Download link"
msgstr "Download link"
@@ -129,7 +129,7 @@ msgstr "Drag and drop an image in the appropriate area or use the traditional wa
msgid "Encrypt the image (Lutim does not keep the key)."
msgstr "Encrypt the image (Lutim does not keep the key)."
-#: themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/partial/lutim.js.ep:44
msgid "Error while trying to modify the image."
msgstr ""
@@ -149,7 +149,7 @@ msgstr ""
msgid "For more details, see the homepage of the project."
msgstr "For more details, see the homepage of the project."
-#: themes/default/templates/layouts/default.html.ep:49
+#: themes/default/templates/layouts/default.html.ep:55
msgid "Fork me!"
msgstr "Fork me!"
@@ -157,11 +157,11 @@ msgstr "Fork me!"
msgid "Gallery link"
msgstr ""
-#: themes/default/templates/partial/common.js.ep:105 themes/default/templates/partial/common.js.ep:88
+#: themes/default/templates/partial/common.js.ep:104 themes/default/templates/partial/common.js.ep:87
msgid "Hit Ctrl+C, then Enter to copy the short link"
msgstr ""
-#: themes/default/templates/layouts/default.html.ep:44
+#: themes/default/templates/layouts/default.html.ep:50
msgid "Homepage"
msgstr "Homepage"
@@ -193,15 +193,15 @@ msgstr ""
msgid "Image not found."
msgstr ""
-#: themes/default/templates/layouts/default.html.ep:48
+#: themes/default/templates/layouts/default.html.ep:54
msgid "Informations"
msgstr "Informations"
-#: themes/default/templates/layouts/default.html.ep:56
+#: themes/default/templates/layouts/default.html.ep:62
msgid "Install webapp"
msgstr "Install webapp"
-#: themes/default/templates/layouts/default.html.ep:55
+#: themes/default/templates/layouts/default.html.ep:61
msgid "Instance's statistics"
msgstr ""
@@ -221,19 +221,19 @@ msgstr "Juste like you pronounce the French word res->max_message_size)
#. ($c->req->max_message_size)
-#. ($max_file_size)
-#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:241
+#. (config('max_file_size')
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:240
msgid "The file exceed the size limit (%1)"
msgstr "The file exceed the size limit (%1)"
@@ -378,7 +378,7 @@ msgstr "The images you post on Lutim can be stored indefinitely or be deleted at
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "There is no more available URL. Retry or contact the administrator. %1"
-#: themes/default/templates/layouts/default.html.ep:51
+#: themes/default/templates/layouts/default.html.ep:57
msgid "Tipeee button"
msgstr ""
@@ -386,7 +386,7 @@ msgstr ""
msgid "Total"
msgstr ""
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:15
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:14
msgid "Tweet it!"
msgstr "Tweet it!"
@@ -424,7 +424,7 @@ msgstr "Uploaded files by days"
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr "Uploading is currently disabled, please try later or contact the administrator (%1)."
-#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:72 themes/default/templates/partial/lutim.js.ep:76
+#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:71 themes/default/templates/partial/lutim.js.ep:75
msgid "View link"
msgstr "View link"
@@ -468,7 +468,7 @@ msgstr "and on"
msgid "core developer"
msgstr "core developer"
-#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim.pm:163 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "no time limit"
diff --git a/themes/default/lib/Lutim/I18N/es.po b/themes/default/lib/Lutim/I18N/es.po
index 081fd78..e923fb7 100644
--- a/themes/default/lib/Lutim/I18N/es.po
+++ b/themes/default/lib/Lutim/I18N/es.po
@@ -22,7 +22,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 días"
@@ -35,15 +35,15 @@ msgstr "%1 imágenes enviadas a esta instancia desde el inicio."
msgid "-or-"
msgstr "-o-"
-#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim.pm:165 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 año"
-#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim.pm:164 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 horas"
-#: themes/default/templates/myfiles.html.ep:123
+#: themes/default/templates/partial/myfiles.js.ep:57
msgid ": Error while trying to get the counter."
msgstr ": Error al intentar obtener el contador."
@@ -71,11 +71,11 @@ msgstr "Clic para abrir el explorador de archivos"
msgid "Contributors"
msgstr "Contribuidores"
-#: themes/default/templates/partial/lutim.js.ep:215 themes/default/templates/partial/lutim.js.ep:269 themes/default/templates/partial/lutim.js.ep:347
+#: themes/default/templates/partial/lutim.js.ep:214 themes/default/templates/partial/lutim.js.ep:268 themes/default/templates/partial/lutim.js.ep:346
msgid "Copy all view links to clipboard"
msgstr "Copiar todos los enlaces de visualización al portapapeles"
-#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:151 themes/default/templates/partial/lutim.js.ep:106 themes/default/templates/partial/lutim.js.ep:121 themes/default/templates/partial/lutim.js.ep:80 themes/default/templates/partial/lutim.js.ep:92
+#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:150 themes/default/templates/partial/lutim.js.ep:105 themes/default/templates/partial/lutim.js.ep:120 themes/default/templates/partial/lutim.js.ep:79 themes/default/templates/partial/lutim.js.ep:91
msgid "Copy to clipboard"
msgstr "Copiar al portapapeles"
@@ -91,7 +91,7 @@ msgstr ""
msgid "Delay repartition chart for enabled images"
msgstr ""
-#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:160
+#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:159
msgid "Delete at first view?"
msgstr "¿Borrar en la primera vista?"
@@ -103,7 +103,7 @@ msgstr ""
msgid "Deleted images in 30 days"
msgstr ""
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:143 themes/default/templates/partial/common.js.ep:146
+#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:142 themes/default/templates/partial/common.js.ep:145
msgid "Deletion link"
msgstr "Enlace para borrar"
@@ -111,7 +111,7 @@ msgstr "Enlace para borrar"
msgid "Download all images"
msgstr "Descargar todas las imágenes"
-#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:102 themes/default/templates/partial/lutim.js.ep:98
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:101 themes/default/templates/partial/lutim.js.ep:97
msgid "Download link"
msgstr "Enlace de descarga"
@@ -131,7 +131,7 @@ msgstr "Arrastre y suelte una imagen en el área apropiada, o use el método tra
msgid "Encrypt the image (Lutim does not keep the key)."
msgstr "Las imágenes se cifran en el servidor (Lutim no guarda la clave)."
-#: themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/partial/lutim.js.ep:44
msgid "Error while trying to modify the image."
msgstr "Error al intentar modificar la imagen."
@@ -151,7 +151,7 @@ msgstr "Nombre de archivo"
msgid "For more details, see the homepage of the project."
msgstr "Para más detalles, vea la página del proyecto."
-#: themes/default/templates/layouts/default.html.ep:49
+#: themes/default/templates/layouts/default.html.ep:55
msgid "Fork me!"
msgstr "¡Clóname!"
@@ -159,11 +159,11 @@ msgstr "¡Clóname!"
msgid "Gallery link"
msgstr "Enlace a la galería"
-#: themes/default/templates/partial/common.js.ep:105 themes/default/templates/partial/common.js.ep:88
+#: themes/default/templates/partial/common.js.ep:104 themes/default/templates/partial/common.js.ep:87
msgid "Hit Ctrl+C, then Enter to copy the short link"
msgstr "Presione Ctrl + C, entonces Ingresar para copiar el enlace"
-#: themes/default/templates/layouts/default.html.ep:44
+#: themes/default/templates/layouts/default.html.ep:50
msgid "Homepage"
msgstr "Página inicial"
@@ -195,15 +195,15 @@ msgstr ""
msgid "Image not found."
msgstr "Imagen no encontrada."
-#: themes/default/templates/layouts/default.html.ep:48
+#: themes/default/templates/layouts/default.html.ep:54
msgid "Informations"
msgstr "Informaciones"
-#: themes/default/templates/layouts/default.html.ep:56
+#: themes/default/templates/layouts/default.html.ep:62
msgid "Install webapp"
msgstr "Instalar webapp"
-#: themes/default/templates/layouts/default.html.ep:55
+#: themes/default/templates/layouts/default.html.ep:61
msgid "Instance's statistics"
msgstr ""
@@ -223,19 +223,19 @@ msgstr "Tal y como se pronuncia la palabra francesa res->max_message_size)
#. ($c->req->max_message_size)
-#. ($max_file_size)
-#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:241
+#. (config('max_file_size')
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:240
msgid "The file exceed the size limit (%1)"
msgstr "El archivo supera el límite de tamaño (%1)"
@@ -380,7 +380,7 @@ msgstr "Puede, opcionalmente, solicitar que la imagen publicada en Lutim se elim
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "No más URL disponibles. Inténtelo de nuevo o contacte con el administrador. %1"
-#: themes/default/templates/layouts/default.html.ep:51
+#: themes/default/templates/layouts/default.html.ep:57
msgid "Tipeee button"
msgstr ""
@@ -388,7 +388,7 @@ msgstr ""
msgid "Total"
msgstr ""
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:15
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:14
msgid "Tweet it!"
msgstr "¡Tuitéalo!"
@@ -426,7 +426,7 @@ msgstr "Archivos enviados por día"
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr "La carga está deshabilitada en estos momentos, por favor inténtelo más tarde o contacte con el administrador (%1)."
-#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:72 themes/default/templates/partial/lutim.js.ep:76
+#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:71 themes/default/templates/partial/lutim.js.ep:75
msgid "View link"
msgstr "Enlace de visualización"
@@ -466,7 +466,7 @@ msgstr "y en"
msgid "core developer"
msgstr "desarrollador principal"
-#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim.pm:163 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "Sin tiempo límite"
diff --git a/themes/default/lib/Lutim/I18N/fr.po b/themes/default/lib/Lutim/I18N/fr.po
index d7c498c..e362eaf 100644
--- a/themes/default/lib/Lutim/I18N/fr.po
+++ b/themes/default/lib/Lutim/I18N/fr.po
@@ -22,7 +22,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 jours"
@@ -35,15 +35,15 @@ msgstr "%1 images envoyées sur cette instance depuis le début."
msgid "-or-"
msgstr "-ou-"
-#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim.pm:165 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 an"
-#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim.pm:164 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 heures"
-#: themes/default/templates/myfiles.html.ep:123
+#: themes/default/templates/partial/myfiles.js.ep:57
msgid ": Error while trying to get the counter."
msgstr " : Erreur en essayant de récupérer le compteur."
@@ -71,11 +71,11 @@ msgstr "Cliquez pour utiliser le navigateur de fichier"
msgid "Contributors"
msgstr "Contributeurs"
-#: themes/default/templates/partial/lutim.js.ep:215 themes/default/templates/partial/lutim.js.ep:269 themes/default/templates/partial/lutim.js.ep:347
+#: themes/default/templates/partial/lutim.js.ep:214 themes/default/templates/partial/lutim.js.ep:268 themes/default/templates/partial/lutim.js.ep:346
msgid "Copy all view links to clipboard"
msgstr "Copier tous les liens de visualisation dans le presse-papier"
-#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:151 themes/default/templates/partial/lutim.js.ep:106 themes/default/templates/partial/lutim.js.ep:121 themes/default/templates/partial/lutim.js.ep:80 themes/default/templates/partial/lutim.js.ep:92
+#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:150 themes/default/templates/partial/lutim.js.ep:105 themes/default/templates/partial/lutim.js.ep:120 themes/default/templates/partial/lutim.js.ep:79 themes/default/templates/partial/lutim.js.ep:91
msgid "Copy to clipboard"
msgstr "Copier dans le presse-papier"
@@ -91,7 +91,7 @@ msgstr "Graphe de répartition des délais pour les images supprimées"
msgid "Delay repartition chart for enabled images"
msgstr "Graphe de répartition des délais pour les images actives"
-#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:160
+#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:159
msgid "Delete at first view?"
msgstr "Supprimer au premier accès ?"
@@ -103,7 +103,7 @@ msgstr "Images supprimées"
msgid "Deleted images in 30 days"
msgstr "Images supprimées dans 30 jours"
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:143 themes/default/templates/partial/common.js.ep:146
+#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:142 themes/default/templates/partial/common.js.ep:145
msgid "Deletion link"
msgstr "Lien de suppression"
@@ -111,7 +111,7 @@ msgstr "Lien de suppression"
msgid "Download all images"
msgstr "Télécharger toutes les images"
-#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:102 themes/default/templates/partial/lutim.js.ep:98
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:101 themes/default/templates/partial/lutim.js.ep:97
msgid "Download link"
msgstr "Lien de téléchargement"
@@ -131,7 +131,7 @@ msgstr "Faites glisser des images dans la zone prévue à cet effet ou sélectio
msgid "Encrypt the image (Lutim does not keep the key)."
msgstr "Chiffrer l’image (Lutim ne stocke pas la clé)."
-#: themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/partial/lutim.js.ep:44
msgid "Error while trying to modify the image."
msgstr "Une erreur est survenue en essayant de modifier l’image."
@@ -151,7 +151,7 @@ msgstr "Nom du fichier"
msgid "For more details, see the homepage of the project."
msgstr "Pour plus de détails, consultez la page Github du projet."
-#: themes/default/templates/layouts/default.html.ep:49
+#: themes/default/templates/layouts/default.html.ep:55
msgid "Fork me!"
msgstr "Créez un fork !"
@@ -159,11 +159,11 @@ msgstr "Créez un fork !"
msgid "Gallery link"
msgstr "Lien vers la galerie"
-#: themes/default/templates/partial/common.js.ep:105 themes/default/templates/partial/common.js.ep:88
+#: themes/default/templates/partial/common.js.ep:104 themes/default/templates/partial/common.js.ep:87
msgid "Hit Ctrl+C, then Enter to copy the short link"
msgstr "Faites Ctrl+C puis appuyez sur la touche Entrée pour copier le lien"
-#: themes/default/templates/layouts/default.html.ep:44
+#: themes/default/templates/layouts/default.html.ep:50
msgid "Homepage"
msgstr "Accueil"
@@ -195,15 +195,15 @@ msgstr "Durée de rétention de l’image"
msgid "Image not found."
msgstr "Image non trouvée."
-#: themes/default/templates/layouts/default.html.ep:48
+#: themes/default/templates/layouts/default.html.ep:54
msgid "Informations"
msgstr "Informations"
-#: themes/default/templates/layouts/default.html.ep:56
+#: themes/default/templates/layouts/default.html.ep:62
msgid "Install webapp"
msgstr "Installer la webapp"
-#: themes/default/templates/layouts/default.html.ep:55
+#: themes/default/templates/layouts/default.html.ep:61
msgid "Instance's statistics"
msgstr "Statistiques de l’instance"
@@ -223,19 +223,19 @@ msgstr "Comme on prononce lutin<
msgid "Keep EXIF tags"
msgstr "Conserver les données EXIF"
-#: themes/default/templates/index.html.ep:118 themes/default/templates/index.html.ep:166 themes/default/templates/index.html.ep:206 themes/default/templates/partial/lutim.js.ep:164
+#: themes/default/templates/index.html.ep:118 themes/default/templates/index.html.ep:166 themes/default/templates/index.html.ep:206 themes/default/templates/partial/lutim.js.ep:163
msgid "Let's go!"
msgstr "Allons-y !"
-#: themes/default/templates/layouts/default.html.ep:52
+#: themes/default/templates/layouts/default.html.ep:58
msgid "Liberapay button"
msgstr "Bouton Liberapay"
-#: themes/default/templates/layouts/default.html.ep:47
+#: themes/default/templates/layouts/default.html.ep:53
msgid "License:"
msgstr "Licence :"
-#: themes/default/templates/index.html.ep:89 themes/default/templates/index.html.ep:91 themes/default/templates/partial/lutim.js.ep:112 themes/default/templates/partial/lutim.js.ep:116
+#: themes/default/templates/index.html.ep:89 themes/default/templates/index.html.ep:91 themes/default/templates/partial/lutim.js.ep:111 themes/default/templates/partial/lutim.js.ep:115
msgid "Link for share on social networks"
msgstr "Lien pour partager sur les réseaux sociaux"
@@ -251,15 +251,15 @@ msgstr "Lutim est un service gratuit et anonyme d’hébergement d’images. Il
msgid "Main developers"
msgstr "Développeurs de l’application"
-#: themes/default/templates/index.html.ep:73 themes/default/templates/index.html.ep:75 themes/default/templates/partial/lutim.js.ep:86 themes/default/templates/partial/lutim.js.ep:89
+#: themes/default/templates/index.html.ep:73 themes/default/templates/index.html.ep:75 themes/default/templates/partial/lutim.js.ep:85 themes/default/templates/partial/lutim.js.ep:88
msgid "Markdown syntax"
msgstr "Syntaxe Markdown"
-#: themes/default/templates/layouts/default.html.ep:54 themes/default/templates/myfiles.html.ep:2
+#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/myfiles.html.ep:2
msgid "My images"
msgstr "Mes images"
-#: themes/default/templates/myfiles.html.ep:85
+#: themes/default/templates/partial/myfiles.js.ep:19
msgid "No limit"
msgstr "Pas de date d’expiration"
@@ -292,15 +292,15 @@ msgstr "Statistiques brutes"
msgid "Send an image"
msgstr "Envoyer une image"
-#: themes/default/templates/partial/lutim.js.ep:21
+#: themes/default/templates/partial/lutim.js.ep:20
msgid "Share it!"
msgstr "Partagez !"
-#: themes/default/templates/layouts/default.html.ep:50
+#: themes/default/templates/layouts/default.html.ep:56
msgid "Share on Twitter"
msgstr "Partager sur Twitter"
-#: themes/default/templates/index.html.ep:133 themes/default/templates/partial/lutim.js.ep:175
+#: themes/default/templates/index.html.ep:133 themes/default/templates/partial/lutim.js.ep:174
msgid "Something bad happened"
msgstr "Un problème est survenu"
@@ -309,11 +309,11 @@ msgstr "Un problème est survenu"
msgid "Something went wrong when creating the zip file. Try again later or contact the administrator (%1)."
msgstr "Quelque chose s’est mal passé lors de la création de l’archive. Veuillez réessayer plus tard ou contactez l’administrateur (%1)."
-#: themes/default/templates/layouts/default.html.ep:52
+#: themes/default/templates/layouts/default.html.ep:58
msgid "Support the author on Liberapay"
msgstr "Supporter l’auteur sur Liberapay"
-#: themes/default/templates/layouts/default.html.ep:51
+#: themes/default/templates/layouts/default.html.ep:57
msgid "Support the author on Tipeee"
msgstr "Supporter l’auteur sur Tipeee"
@@ -346,8 +346,8 @@ msgstr "Le fichier %1 n’est pas une image."
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
-#. ($max_file_size)
-#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:241
+#. (config('max_file_size')
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:240
msgid "The file exceed the size limit (%1)"
msgstr "Le fichier dépasse la limite de taille (%1)"
@@ -382,7 +382,7 @@ msgstr "Les images déposées sur Lutim peuvent être stockées indéfiniment, o
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "Il n’y a plus d’URL disponible. Veuillez réessayer ou contacter l’administrateur. %1."
-#: themes/default/templates/layouts/default.html.ep:51
+#: themes/default/templates/layouts/default.html.ep:57
msgid "Tipeee button"
msgstr "Bouton Tipeee"
@@ -390,7 +390,7 @@ msgstr "Bouton Tipeee"
msgid "Total"
msgstr "Total"
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:15
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:14
msgid "Tweet it!"
msgstr "Tweetez !"
@@ -428,7 +428,7 @@ msgstr "Fichiers envoyés, par jour"
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr "L’envoi d’images est actuellement désactivé, veuillez réessayer plus tard ou contacter l’administrateur (%1)."
-#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:72 themes/default/templates/partial/lutim.js.ep:76
+#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:71 themes/default/templates/partial/lutim.js.ep:75
msgid "View link"
msgstr "Lien d’affichage"
@@ -468,7 +468,7 @@ msgstr "et sur"
msgid "core developer"
msgstr "développeur principal"
-#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim.pm:163 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "Pas de limitation de durée"
diff --git a/themes/default/lib/Lutim/I18N/oc.po b/themes/default/lib/Lutim/I18N/oc.po
index 64977cb..c049945 100644
--- a/themes/default/lib/Lutim/I18N/oc.po
+++ b/themes/default/lib/Lutim/I18N/oc.po
@@ -21,7 +21,7 @@ msgstr ""
#. (30)
#. ($delay)
#. (config('max_delay')
-#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:139 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/partial/lutim.js.ep:149 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
+#: lib/Lutim/Command/cron/stats.pm:149 lib/Lutim/Command/cron/stats.pm:150 lib/Lutim/Command/cron/stats.pm:160 lib/Lutim/Command/cron/stats.pm:161 lib/Lutim/Command/cron/stats.pm:177 lib/Lutim/Command/cron/stats.pm:178 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/for_my_delay.html.ep:13 themes/default/templates/partial/for_my_delay.html.ep:3 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:19 themes/default/templates/raw.html.ep:20 themes/default/templates/raw.html.ep:36 themes/default/templates/raw.html.ep:37 themes/default/templates/raw.html.ep:8 themes/default/templates/raw.html.ep:9
msgid "%1 days"
msgstr "%1 jorns"
@@ -34,15 +34,15 @@ msgstr "%1 imatges mandats sus aquesta instància dempuèi lo començament."
msgid "-or-"
msgstr "-o-"
-#: lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
+#: lib/Lutim.pm:165 lib/Lutim/Command/cron/stats.pm:151 lib/Lutim/Command/cron/stats.pm:162 lib/Lutim/Command/cron/stats.pm:179 themes/default/templates/index.html.ep:5 themes/default/templates/raw.html.ep:10 themes/default/templates/raw.html.ep:21 themes/default/templates/raw.html.ep:38
msgid "1 year"
msgstr "1 an"
-#: lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:148 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
+#: lib/Lutim.pm:164 lib/Lutim/Command/cron/stats.pm:148 lib/Lutim/Command/cron/stats.pm:159 lib/Lutim/Command/cron/stats.pm:176 themes/default/templates/index.html.ep:4 themes/default/templates/partial/for_my_delay.html.ep:12 themes/default/templates/partial/lutim.js.ep:147 themes/default/templates/raw.html.ep:18 themes/default/templates/raw.html.ep:35 themes/default/templates/raw.html.ep:7
msgid "24 hours"
msgstr "24 oras"
-#: themes/default/templates/myfiles.html.ep:123
+#: themes/default/templates/partial/myfiles.js.ep:57
msgid ": Error while trying to get the counter."
msgstr " : Error al moment de recuperar lo comptador."
@@ -70,11 +70,11 @@ msgstr "Clicatz per utilizar lo navigador de fichièr"
msgid "Contributors"
msgstr "Contributors"
-#: themes/default/templates/partial/lutim.js.ep:215 themes/default/templates/partial/lutim.js.ep:269 themes/default/templates/partial/lutim.js.ep:347
+#: themes/default/templates/partial/lutim.js.ep:214 themes/default/templates/partial/lutim.js.ep:268 themes/default/templates/partial/lutim.js.ep:346
msgid "Copy all view links to clipboard"
msgstr "Copiar totes los ligams de visualizacion dins lo quichapapièrs"
-#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:151 themes/default/templates/partial/lutim.js.ep:106 themes/default/templates/partial/lutim.js.ep:121 themes/default/templates/partial/lutim.js.ep:80 themes/default/templates/partial/lutim.js.ep:92
+#: themes/default/templates/index.html.ep:18 themes/default/templates/index.html.ep:36 themes/default/templates/index.html.ep:69 themes/default/templates/index.html.ep:77 themes/default/templates/index.html.ep:85 themes/default/templates/index.html.ep:93 themes/default/templates/myfiles.html.ep:20 themes/default/templates/myfiles.html.ep:38 themes/default/templates/partial/common.js.ep:150 themes/default/templates/partial/lutim.js.ep:105 themes/default/templates/partial/lutim.js.ep:120 themes/default/templates/partial/lutim.js.ep:79 themes/default/templates/partial/lutim.js.ep:91
msgid "Copy to clipboard"
msgstr "Copiar dins lo quichapapièrs"
@@ -90,7 +90,7 @@ msgstr "Grafic de despartiment dels delais pels imatges desactivats"
msgid "Delay repartition chart for enabled images"
msgstr "Grafic de despartiment dels delais pels imatges activats"
-#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:160
+#: themes/default/templates/index.html.ep:115 themes/default/templates/index.html.ep:147 themes/default/templates/index.html.ep:178 themes/default/templates/myfiles.html.ep:53 themes/default/templates/partial/lutim.js.ep:159
msgid "Delete at first view?"
msgstr "Suprimir al primièr accès ?"
@@ -102,7 +102,7 @@ msgstr "Imatges suprimits"
msgid "Deleted images in 30 days"
msgstr "Imatges per èsser suprimits dins 30 jorns"
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:143 themes/default/templates/partial/common.js.ep:146
+#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:56 themes/default/templates/partial/common.js.ep:142 themes/default/templates/partial/common.js.ep:145
msgid "Deletion link"
msgstr "Ligam de supression"
@@ -110,7 +110,7 @@ msgstr "Ligam de supression"
msgid "Download all images"
msgstr "Telecargar totes los imatges"
-#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:102 themes/default/templates/partial/lutim.js.ep:98
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:101 themes/default/templates/partial/lutim.js.ep:97
msgid "Download link"
msgstr "Ligam de telecargament"
@@ -130,7 +130,7 @@ msgstr "Depausatz vòstres imatges dins la zòna prevista per aquò o selecciona
msgid "Encrypt the image (Lutim does not keep the key)."
msgstr "Chifrar l'imatge (Lutim garda pas la clau)."
-#: themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/partial/lutim.js.ep:44
msgid "Error while trying to modify the image."
msgstr "Una error es apareguda al moment de modificar l'imatge."
@@ -150,7 +150,7 @@ msgstr "Nom del fichièr"
msgid "For more details, see the homepage of the project."
msgstr "Per mai de detalhs, consultatz la pagina Github del projècte."
-#: themes/default/templates/layouts/default.html.ep:49
+#: themes/default/templates/layouts/default.html.ep:55
msgid "Fork me!"
msgstr "Creatz un fork !"
@@ -158,11 +158,11 @@ msgstr "Creatz un fork !"
msgid "Gallery link"
msgstr "Ligam cap a la galariá"
-#: themes/default/templates/partial/common.js.ep:105 themes/default/templates/partial/common.js.ep:88
+#: themes/default/templates/partial/common.js.ep:104 themes/default/templates/partial/common.js.ep:87
msgid "Hit Ctrl+C, then Enter to copy the short link"
msgstr "Fasètz Ctrl+C puèi picatz Entrada per copiar lo ligam"
-#: themes/default/templates/layouts/default.html.ep:44
+#: themes/default/templates/layouts/default.html.ep:50
msgid "Homepage"
msgstr "Acuèlh"
@@ -194,15 +194,15 @@ msgstr "Delai de l'imatge"
msgid "Image not found."
msgstr "Imatge pas trobat."
-#: themes/default/templates/layouts/default.html.ep:48
+#: themes/default/templates/layouts/default.html.ep:54
msgid "Informations"
msgstr "Informacions"
-#: themes/default/templates/layouts/default.html.ep:56
+#: themes/default/templates/layouts/default.html.ep:62
msgid "Install webapp"
msgstr "Installar la webapp"
-#: themes/default/templates/layouts/default.html.ep:55
+#: themes/default/templates/layouts/default.html.ep:61
msgid "Instance's statistics"
msgstr ""
@@ -222,19 +222,19 @@ msgstr "Òm pronóncia coma en occitan lengadocian, LU-TI-N, amb una M finala qu
msgid "Keep EXIF tags"
msgstr "Conservar las donadas EXIF"
-#: themes/default/templates/index.html.ep:118 themes/default/templates/index.html.ep:166 themes/default/templates/index.html.ep:206 themes/default/templates/partial/lutim.js.ep:164
+#: themes/default/templates/index.html.ep:118 themes/default/templates/index.html.ep:166 themes/default/templates/index.html.ep:206 themes/default/templates/partial/lutim.js.ep:163
msgid "Let's go!"
msgstr "Zo !"
-#: themes/default/templates/layouts/default.html.ep:52
+#: themes/default/templates/layouts/default.html.ep:58
msgid "Liberapay button"
msgstr ""
-#: themes/default/templates/layouts/default.html.ep:47
+#: themes/default/templates/layouts/default.html.ep:53
msgid "License:"
msgstr "Licéncia :"
-#: themes/default/templates/index.html.ep:89 themes/default/templates/index.html.ep:91 themes/default/templates/partial/lutim.js.ep:112 themes/default/templates/partial/lutim.js.ep:116
+#: themes/default/templates/index.html.ep:89 themes/default/templates/index.html.ep:91 themes/default/templates/partial/lutim.js.ep:111 themes/default/templates/partial/lutim.js.ep:115
msgid "Link for share on social networks"
msgstr "Ligam per partejar suls malhums socials"
@@ -250,15 +250,15 @@ msgstr "Lutim es un servici gratuit e anonim d’albergament d’imatges. S’ag
msgid "Main developers"
msgstr "Desvolopaires de l'aplicacion"
-#: themes/default/templates/index.html.ep:73 themes/default/templates/index.html.ep:75 themes/default/templates/partial/lutim.js.ep:86 themes/default/templates/partial/lutim.js.ep:89
+#: themes/default/templates/index.html.ep:73 themes/default/templates/index.html.ep:75 themes/default/templates/partial/lutim.js.ep:85 themes/default/templates/partial/lutim.js.ep:88
msgid "Markdown syntax"
msgstr "Sintaxi Markdown"
-#: themes/default/templates/layouts/default.html.ep:54 themes/default/templates/myfiles.html.ep:2
+#: themes/default/templates/layouts/default.html.ep:60 themes/default/templates/myfiles.html.ep:2
msgid "My images"
msgstr "Mos imatges"
-#: themes/default/templates/myfiles.html.ep:85
+#: themes/default/templates/partial/myfiles.js.ep:19
msgid "No limit"
msgstr "Pas cap de data d'expiracion"
@@ -291,15 +291,15 @@ msgstr "Estatisticas bruts"
msgid "Send an image"
msgstr "Mandar un imatge"
-#: themes/default/templates/partial/lutim.js.ep:21
+#: themes/default/templates/partial/lutim.js.ep:20
msgid "Share it!"
msgstr "Partejatz !"
-#: themes/default/templates/layouts/default.html.ep:50
+#: themes/default/templates/layouts/default.html.ep:56
msgid "Share on Twitter"
msgstr "Partejar sus Twitter"
-#: themes/default/templates/index.html.ep:133 themes/default/templates/partial/lutim.js.ep:175
+#: themes/default/templates/index.html.ep:133 themes/default/templates/partial/lutim.js.ep:174
msgid "Something bad happened"
msgstr "Un problèma es aparegut"
@@ -308,11 +308,11 @@ msgstr "Un problèma es aparegut"
msgid "Something went wrong when creating the zip file. Try again later or contact the administrator (%1)."
msgstr "Quicòm a trucat pendent la creacion de l'archiu. Mercés de tornar ensajar pus tard o de contactar l'administrator (%1)."
-#: themes/default/templates/layouts/default.html.ep:52
+#: themes/default/templates/layouts/default.html.ep:58
msgid "Support the author on Liberapay"
msgstr ""
-#: themes/default/templates/layouts/default.html.ep:51
+#: themes/default/templates/layouts/default.html.ep:57
msgid "Support the author on Tipeee"
msgstr ""
@@ -343,8 +343,8 @@ msgstr "Lo fichièr %1 es pas un imatge."
#. ($tx->res->max_message_size)
#. ($c->req->max_message_size)
-#. ($max_file_size)
-#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:241
+#. (config('max_file_size')
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:240
msgid "The file exceed the size limit (%1)"
msgstr "Lo fichièr depassa lo limit de talha (%1)"
@@ -379,7 +379,7 @@ msgstr "Los imatges depausats sus Lutim pòdon èsser gardats sens fin, o s’es
msgid "There is no more available URL. Retry or contact the administrator. %1"
msgstr "I a pas mai d'URL disponibla. Mercés de tornar ensajar o de contactar l'administrator. %1."
-#: themes/default/templates/layouts/default.html.ep:51
+#: themes/default/templates/layouts/default.html.ep:57
msgid "Tipeee button"
msgstr ""
@@ -387,7 +387,7 @@ msgstr ""
msgid "Total"
msgstr "Total"
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:15
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:14
msgid "Tweet it!"
msgstr "Tweetejatz !"
@@ -425,7 +425,7 @@ msgstr "Fichièrs mandats per jorn"
msgid "Uploading is currently disabled, please try later or contact the administrator (%1)."
msgstr "La mesa en linha es desactivada pel moment, mercés de tornar ensajar mai tard o de contactar l'administrator (%1)."
-#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:72 themes/default/templates/partial/lutim.js.ep:76
+#: themes/default/templates/index.html.ep:65 themes/default/templates/index.html.ep:67 themes/default/templates/myfiles.html.ep:51 themes/default/templates/partial/lutim.js.ep:71 themes/default/templates/partial/lutim.js.ep:75
msgid "View link"
msgstr "Ligam d'afichatge"
@@ -465,7 +465,7 @@ msgstr "e sus"
msgid "core developer"
msgstr "desvolopaire màger"
-#: lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
+#: lib/Lutim.pm:163 lib/Lutim/Command/cron/stats.pm:147 lib/Lutim/Command/cron/stats.pm:158 lib/Lutim/Command/cron/stats.pm:175 themes/default/templates/index.html.ep:3 themes/default/templates/raw.html.ep:17 themes/default/templates/raw.html.ep:34 themes/default/templates/raw.html.ep:6
msgid "no time limit"
msgstr "Pas cap de limitacion de durada"
diff --git a/themes/default/public/gallery/css/unite-gallery.css b/themes/default/public/gallery/css/unite-gallery.css
index caf2ca2..8e4cc84 100644
--- a/themes/default/public/gallery/css/unite-gallery.css
+++ b/themes/default/public/gallery/css/unite-gallery.css
@@ -95,7 +95,7 @@
height:35px;
width:32px;
height:32px;
- background-image:url('../images/loader_skype_trans.gif');
+ background-image:url('../../gallery/images/loader_skype_trans.gif');
background-repeat:no-repeat;
}
@@ -151,78 +151,78 @@
.ug-slider-preloader.ug-loader1{
width:30px;
height:30px;
- background-image:url('../images/loader-white1.gif');
+ background-image:url('../../gallery/images/loader-white1.gif');
}
.ug-slider-preloader.ug-loader1.ug-loader-black{
- background-image:url('../images/loader-black1.gif');
+ background-image:url('../../gallery/images/loader-black1.gif');
}
.ug-slider-preloader.ug-loader2{
width:32px;
height:32px;
- background-image:url('../images/loader-white2.gif');
+ background-image:url('../../gallery/images/loader-white2.gif');
}
.ug-slider-preloader.ug-loader2.ug-loader-black{
- background-image:url('../images/loader-black2.gif');
+ background-image:url('../../gallery/images/loader-black2.gif');
}
.ug-slider-preloader.ug-loader3{
width:38px;
height:38px;
- background-image:url('../images/loader-white3.gif');
+ background-image:url('../../gallery/images/loader-white3.gif');
}
.ug-slider-preloader.ug-loader3.ug-loader-black{
- background-image:url('../images/loader-black3.gif');
+ background-image:url('../../gallery/images/loader-black3.gif');
}
.ug-slider-preloader.ug-loader4{
width:32px;
height:32px;
- background-image:url('../images/loader-white4.gif');
+ background-image:url('../../gallery/images/loader-white4.gif');
background-color:white;
}
.ug-slider-preloader.ug-loader4.ug-loader-black{
- background-image:url('../images/loader-black4.gif');
+ background-image:url('../../gallery/images/loader-black4.gif');
}
.ug-slider-preloader.ug-loader5{
width:60px;
height:8px;
- background-image:url('../images/loader-white5.gif');
+ background-image:url('../../gallery/images/loader-white5.gif');
background-color:white;
border:none;
border-radius:0px;
}
.ug-slider-preloader.ug-loader5.ug-loader-black{
- background-image:url('../images/loader-black5.gif');
+ background-image:url('../../gallery/images/loader-black5.gif');
border:2px solid #000000;
}
.ug-slider-preloader.ug-loader6{
width:32px;
height:32px;
- background-image:url('../images/loader-white6.gif');
+ background-image:url('../../gallery/images/loader-white6.gif');
}
.ug-slider-preloader.ug-loader6.ug-loader-black{
- background-image:url('../images/loader-black6.gif');
+ background-image:url('../../gallery/images/loader-black6.gif');
}
.ug-slider-preloader.ug-loader7{
width:32px;
height:10px;
- background-image:url('../images/loader-white7.gif');
+ background-image:url('../../gallery/images/loader-white7.gif');
border-width:3px;
border-radius:3px;
}
.ug-slider-preloader.ug-loader7.ug-loader-black{
- background-image:url('../images/loader-black7.gif');
+ background-image:url('../../gallery/images/loader-black7.gif');
}
.ug-slider-preloader.ug-loader-black{
@@ -243,7 +243,7 @@
.ug-slider-wrapper .ug-button-videoplay.ug-type-square{
width:86px;
height:66px;
- background-image:url('../images/play-button-square.png');
+ background-image:url('../../gallery/images/play-button-square.png');
background-position:0px -66px;
}
@@ -255,7 +255,7 @@
.ug-slider-wrapper .ug-button-videoplay.ug-type-round{
width:76px;
height:76px;
- background-image:url('../images/play-button-round.png');
+ background-image:url('../../gallery/images/play-button-round.png');
opacity:0.9;
filter: alpha(opacity = 90);
transition: all 0.3s ease 0s !important;
@@ -275,7 +275,7 @@
position:absolute;
z-index:100;
background-color:#000000;
- background-image:url('../images/loader-black1.gif');
+ background-image:url('../../gallery/images/loader-black1.gif');
background-repeat:no-repeat;
background-position:center center;
box-sizing:border-box;
@@ -286,7 +286,7 @@
width:100%;
height:100%;
background-color:#000000;
- background-image:url('../images/loader-black1.gif');
+ background-image:url('../../gallery/images/loader-black1.gif');
background-repeat:no-repeat;
background-position:center center;
}
@@ -296,7 +296,7 @@
position:absolute;
height:64px;
width:64px;
- background-image:url('../images/button-close.png');
+ background-image:url('../../gallery/images/button-close.png');
cursor:pointer;
z-index:1000;
}
@@ -372,15 +372,15 @@
}
.ug-thumb-wrapper.ug-thumb-generated .ug-thumb-loader-dark{
- background-image:url('../images/loader.gif');
+ background-image:url('../../gallery/images/loader.gif');
}
.ug-thumb-wrapper.ug-thumb-generated .ug-thumb-loader-bright{
- background-image:url('../images/loader_bright.gif');
+ background-image:url('../../gallery/images/loader_bright.gif');
}
.ug-thumb-wrapper.ug-thumb-generated .ug-thumb-error{
- background-image:url('../images/not_loaded.png');
+ background-image:url('../../gallery/images/not_loaded.png');
}
.ug-thumb-wrapper.ug-thumb-generated img{
@@ -572,7 +572,7 @@ img.ug-sepia-effect{
background-color:#000000;
opacity: 0.3;
filter: alpha(opacity=30);
- background-image:url('../images/cover-grid.png');
+ background-image:url('../../gallery/images/cover-grid.png');
}
@@ -695,15 +695,15 @@ img.ug-sepia-effect{
}
.ug-thumb-wrapper.ug-tile .ug-tile-icon.ug-icon-link{
- background-image:url('../images/icon-link32.png');
+ background-image:url('../../gallery/images/icon-link32.png');
}
.ug-thumb-wrapper.ug-tile .ug-tile-icon.ug-icon-zoom{
- background-image:url('../images/icon-zoom32.png');
+ background-image:url('../../gallery/images/icon-zoom32.png');
}
.ug-thumb-wrapper.ug-tile .ug-tile-icon.ug-icon-play{
- background-image:url('../images/icon-play32.png');
+ background-image:url('../../gallery/images/icon-play32.png');
}
.ug-thumb-wrapper.ug-tile .ug-tile-icon:hover{
@@ -805,14 +805,14 @@ img.ug-sepia-effect{
width:50px;
height:55px;
background-repeat:no-repeat;
- background-image:url('../images/lightbox-arrow-left.png');
+ background-image:url('../../gallery/images/lightbox-arrow-left.png');
background-position:0px 0px;
z-index:3;
cursor:pointer;
}
.ug-lightbox .ug-lightbox-arrow-right{
- background-image:url('../images/lightbox-arrow-right.png');
+ background-image:url('../../gallery/images/lightbox-arrow-right.png');
}
.ug-lightbox .ug-lightbox-button-close{
@@ -820,7 +820,7 @@ img.ug-sepia-effect{
width:36px;
height:36px;
background-repeat:no-repeat;
- background-image:url('../images/lightbox-icon-close.png');
+ background-image:url('../../gallery/images/lightbox-icon-close.png');
background-position:0px 0px;
z-index:4;
cursor:pointer;
@@ -830,7 +830,7 @@ img.ug-sepia-effect{
.ug-lightbox-compact .ug-lightbox-button-close{
width:45px;
height:41px;
- background-image:url('../images/lightbox-icon-close-compact2.png');
+ background-image:url('../../gallery/images/lightbox-icon-close-compact2.png');
}
diff --git a/themes/default/public/gallery/themes/default/ug-theme-default.css b/themes/default/public/gallery/themes/default/ug-theme-default.css
index fe3e48b..a22ccca 100644
--- a/themes/default/public/gallery/themes/default/ug-theme-default.css
+++ b/themes/default/public/gallery/themes/default/ug-theme-default.css
@@ -14,7 +14,7 @@
.ug-theme-default .ug-default-button-fullscreen{
position:absolute;
- background-image:url('images/button_fullscreen.png');
+ background-image:url('../../gallery/themes/default/images/button_fullscreen.png');
width:53px;
height:50px;
cursor:pointer;
@@ -39,7 +39,7 @@
.ug-theme-default .ug-default-button-fullscreen-single{
position:absolute;
- background-image:url('images/button_fullscreen_single.png');
+ background-image:url('../../gallery/themes/default/images/button_fullscreen_single.png');
width:52px;
height:50px;
cursor:pointer;
@@ -64,7 +64,7 @@
.ug-theme-default .ug-default-button-play{
position:absolute;
- background-image:url('images/button_playpause.png');
+ background-image:url('../../gallery/themes/default/images/button_playpause.png');
width:51px;
height:50px;
cursor:pointer;
@@ -88,7 +88,7 @@
.ug-theme-default .ug-default-button-play-single{
position:absolute;
- background-image:url('images/button_playpause_single.png');
+ background-image:url('../../gallery/themes/default/images/button_playpause_single.png');
width:50px;
height:50px;
cursor:pointer;
@@ -136,7 +136,7 @@
width:7px;
height:7px;
background-repeat:no-repeat;
- background-image:url('images/arrow_down_up.png');
+ background-image:url('../../gallery/themes/default/images/arrow_down_up.png');
background-position: 0px 0px;
z-index:2;
}
diff --git a/themes/default/templates/gallery.html.ep b/themes/default/templates/gallery.html.ep
index 3aac928..308f282 100644
--- a/themes/default/templates/gallery.html.ep
+++ b/themes/default/templates/gallery.html.ep
@@ -12,40 +12,3 @@
-%= stylesheet '/gallery/css/unite-gallery.css'
-%= stylesheet '/gallery/themes/default/ug-theme-default.css'
-%= javascript '/gallery/js/unitegallery.js'
-%= javascript '/gallery/themes/tiles/ug-theme-tiles.js'
-%= javascript '/js/jszip.min.js'
-%= javascript '/js/FileSaver.min.js'
-%= javascript begin
-$(document).ready(function() {
- var absUrl = '<%= url_for('/') %>';
-
- var key = window.location.hash.substring(1); // Get key
- // First, strip everything after the equal sign (=) which signals end of base64 string.
- i = key.indexOf('='); if (i>-1) { key = key.substring(0,i+1); }
- // If the equal sign was not present, some parameters may remain:
- i = key.indexOf('&'); if (i>-1) { key = key.substring(0,i); }
-
- var keys = key.split(',');
-
- $('#download-all').attr('href', $('#download-all').attr('href')+keys.join('&i='));
-
- var items = [];
- keys.forEach(function(element, index, array) {
- if (!element.match('xcf')) {
- $('#gallery').append(
- [
- '

'
- ].join('')
- );
- }
- });
- var api = $("#gallery").unitegallery({
- gallery_theme: "tiles",
- tiles_max_columns: 4,
- lightbox_overlay_color: "#DDD"
- });
-});
-% end
diff --git a/themes/default/templates/index.html.ep b/themes/default/templates/index.html.ep
index 17f72ef..8d41c1e 100644
--- a/themes/default/templates/index.html.ep
+++ b/themes/default/templates/index.html.ep
@@ -207,6 +207,3 @@
-
-%= include 'partial/common', format => 'js'
-%= include 'partial/lutim', format => 'js', d => \%d
diff --git a/themes/default/templates/layouts/default.html.ep b/themes/default/templates/layouts/default.html.ep
index a19fcd3..34a604c 100644
--- a/themes/default/templates/layouts/default.html.ep
+++ b/themes/default/templates/layouts/default.html.ep
@@ -27,6 +27,12 @@
%= asset 'about.css'
% } else {
%= asset 'index.css'
+% }
+% if (current_route 'gallery') {
+ %= asset 'gallery.css'
+% }
+% if (!(current_route 'about')) {
+ %= javascript '/js/jquery-2.1.0.min.js'
% }
@@ -67,18 +73,34 @@