From b8212e4920bf4c3b1b9ef43ca6616b4ca1ff47af Mon Sep 17 00:00:00 2001
From: Luc Didry
Date: Mon, 5 Jun 2017 11:53:45 +0200
Subject: [PATCH] Fix #33 Add gallery constructor in "my files" list
This commit is dedicated to guilhemB, who is supporting me on Tipeee.
Many thanks :-)
---
CHANGELOG | 1 +
themes/default/lib/Lutim/I18N/de.po | 52 ++++-----
themes/default/lib/Lutim/I18N/en.po | 52 ++++-----
themes/default/lib/Lutim/I18N/es.po | 52 ++++-----
themes/default/lib/Lutim/I18N/fr.po | 52 ++++-----
themes/default/lib/Lutim/I18N/oc.po | 52 ++++-----
themes/default/templates/myfiles.html.ep | 72 +++++++++---
themes/default/templates/partial/common.js.ep | 106 ++++++++++++++++++
themes/default/templates/partial/lutim.js.ep | 106 ------------------
9 files changed, 295 insertions(+), 250 deletions(-)
diff --git a/CHANGELOG b/CHANGELOG
index f61dd83..3a7d9e0 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -9,6 +9,7 @@ Revision history for Lutim
- Remove Flattr button
- Handle MOJO_CONFIG env variable (#44)
- Fix bug #39
+ - Add gallery constructor to "my files" list (#33)
0.7.1 2016-06-21
- Fix dependency bug
diff --git a/themes/default/lib/Lutim/I18N/de.po b/themes/default/lib/Lutim/I18N/de.po
index 318a6bc..6d9c5cb 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:235 themes/default/templates/partial/lutim.js.ep:244 themes/default/templates/partial/lutim.js.ep:245 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: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:129 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:139 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"
@@ -39,11 +39,11 @@ msgstr "-oder-"
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:244 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: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:138 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:79
+#: themes/default/templates/myfiles.html.ep:123
msgid ": Error while trying to get the counter."
msgstr ":Fehler beim Abrufen des Zählers."
@@ -55,7 +55,7 @@ msgstr ""
msgid "An error occured while downloading the image."
msgstr "Beim Herunterladen des Bildes ist ein Fehler aufgetreten."
-#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:27 themes/default/templates/stats.html.ep:25
+#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:64 themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Zurück zur Hauptseite"
@@ -67,15 +67,15 @@ msgstr "Klicken um den Dateibrowser zu öffnen"
msgid "Contributors"
msgstr "Mitwirkende"
-#: themes/default/templates/partial/lutim.js.ep:310 themes/default/templates/partial/lutim.js.ep:363 themes/default/templates/partial/lutim.js.ep:441
+#: themes/default/templates/partial/lutim.js.ep:204 themes/default/templates/partial/lutim.js.ep:257 themes/default/templates/partial/lutim.js.ep:335
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/partial/common.js.ep:45 themes/default/templates/partial/lutim.js.ep:176 themes/default/templates/partial/lutim.js.ep:188 themes/default/templates/partial/lutim.js.ep:202 themes/default/templates/partial/lutim.js.ep:217
+#: 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:111 themes/default/templates/partial/lutim.js.ep:70 themes/default/templates/partial/lutim.js.ep:82 themes/default/templates/partial/lutim.js.ep:96
msgid "Copy to clipboard"
msgstr "In die Zwischenablage kopieren"
-#: themes/default/templates/myfiles.html.ep:15
+#: themes/default/templates/myfiles.html.ep:52
msgid "Counter"
msgstr "Zähler"
@@ -87,7 +87,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:16 themes/default/templates/partial/lutim.js.ep:256
+#: 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:150
msgid "Delete at first view?"
msgstr "Nach erstem Aufruf löschen?"
@@ -99,7 +99,7 @@ msgstr ""
msgid "Deleted images in 30 days"
msgstr ""
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:19 themes/default/templates/partial/common.js.ep:37 themes/default/templates/partial/common.js.ep:40
+#: 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
msgid "Deletion link"
msgstr "Link zum Löschen"
@@ -107,11 +107,11 @@ 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:194 themes/default/templates/partial/lutim.js.ep:198
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:88 themes/default/templates/partial/lutim.js.ep:92
msgid "Download link"
msgstr "Link zum Herunterladen"
-#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31
+#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31 themes/default/templates/myfiles.html.ep:30 themes/default/templates/myfiles.html.ep:33
msgid "Download zip link"
msgstr "Link zum Archivbilder"
@@ -127,7 +127,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:72
+#: themes/default/templates/partial/lutim.js.ep:35
msgid "Error while trying to modify the image."
msgstr "Beim bearbeiten des Bildes ist ein Fehler aufgetreten."
@@ -135,11 +135,11 @@ msgstr "Beim bearbeiten des Bildes ist ein Fehler aufgetreten."
msgid "Evolution of total files"
msgstr "Entwicklung der Anzahl an Dateien"
-#: themes/default/templates/myfiles.html.ep:18
+#: themes/default/templates/myfiles.html.ep:55
msgid "Expires at"
msgstr "Läuft ab am"
-#: themes/default/templates/myfiles.html.ep:13
+#: themes/default/templates/myfiles.html.ep:50
msgid "File name"
msgstr "Dateiname"
@@ -151,11 +151,11 @@ msgstr "Besuche für mehr Details die 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:336
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:230
msgid "The file exceed the size limit (%1)"
msgstr "Die Datei überschreitet die Größenbeschränkung (%1)"
@@ -374,7 +374,7 @@ msgstr ""
msgid "Total"
msgstr ""
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:8
msgid "Tweet it!"
msgstr "Twittere es!"
@@ -399,7 +399,7 @@ msgstr "Im Gegensatz zu anderen Bild-Hosting-Diensten, überträgst du uns nicht
msgid "Upload an image with its URL"
msgstr "Lade ein Bild über seine URL hoch"
-#: themes/default/templates/myfiles.html.ep:17
+#: themes/default/templates/myfiles.html.ep:54
msgid "Uploaded at"
msgstr "Hochgeladen am"
@@ -412,7 +412,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:14 themes/default/templates/partial/lutim.js.ep:168 themes/default/templates/partial/lutim.js.ep:172
+#: 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:62 themes/default/templates/partial/lutim.js.ep:66
msgid "View link"
msgstr "Link ansehen"
diff --git a/themes/default/lib/Lutim/I18N/en.po b/themes/default/lib/Lutim/I18N/en.po
index fccadd8..f7d14cd 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:235 themes/default/templates/partial/lutim.js.ep:244 themes/default/templates/partial/lutim.js.ep:245 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: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:129 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:139 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 ""
@@ -37,11 +37,11 @@ msgstr "-or-"
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:244 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: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:138 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:79
+#: themes/default/templates/myfiles.html.ep:123
msgid ": Error while trying to get the counter."
msgstr ""
@@ -53,7 +53,7 @@ msgstr ""
msgid "An error occured while downloading the image."
msgstr "An error occured while downloading the image."
-#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:27 themes/default/templates/stats.html.ep:25
+#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:64 themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Back to homepage"
@@ -65,15 +65,15 @@ msgstr "Click to open the file browser"
msgid "Contributors"
msgstr "Contributors"
-#: themes/default/templates/partial/lutim.js.ep:310 themes/default/templates/partial/lutim.js.ep:363 themes/default/templates/partial/lutim.js.ep:441
+#: themes/default/templates/partial/lutim.js.ep:204 themes/default/templates/partial/lutim.js.ep:257 themes/default/templates/partial/lutim.js.ep:335
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/partial/common.js.ep:45 themes/default/templates/partial/lutim.js.ep:176 themes/default/templates/partial/lutim.js.ep:188 themes/default/templates/partial/lutim.js.ep:202 themes/default/templates/partial/lutim.js.ep:217
+#: 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:111 themes/default/templates/partial/lutim.js.ep:70 themes/default/templates/partial/lutim.js.ep:82 themes/default/templates/partial/lutim.js.ep:96
msgid "Copy to clipboard"
msgstr "Copy to clipboard"
-#: themes/default/templates/myfiles.html.ep:15
+#: themes/default/templates/myfiles.html.ep:52
msgid "Counter"
msgstr ""
@@ -85,7 +85,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:16 themes/default/templates/partial/lutim.js.ep:256
+#: 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:150
msgid "Delete at first view?"
msgstr "Delete at first view?"
@@ -97,7 +97,7 @@ msgstr ""
msgid "Deleted images in 30 days"
msgstr ""
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:19 themes/default/templates/partial/common.js.ep:37 themes/default/templates/partial/common.js.ep:40
+#: 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
msgid "Deletion link"
msgstr "Deletion link"
@@ -105,11 +105,11 @@ 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:194 themes/default/templates/partial/lutim.js.ep:198
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:88 themes/default/templates/partial/lutim.js.ep:92
msgid "Download link"
msgstr "Download link"
-#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31
+#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31 themes/default/templates/myfiles.html.ep:30 themes/default/templates/myfiles.html.ep:33
msgid "Download zip link"
msgstr ""
@@ -125,7 +125,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:72
+#: themes/default/templates/partial/lutim.js.ep:35
msgid "Error while trying to modify the image."
msgstr ""
@@ -133,11 +133,11 @@ msgstr ""
msgid "Evolution of total files"
msgstr "Evolution of total files"
-#: themes/default/templates/myfiles.html.ep:18
+#: themes/default/templates/myfiles.html.ep:55
msgid "Expires at"
msgstr ""
-#: themes/default/templates/myfiles.html.ep:13
+#: themes/default/templates/myfiles.html.ep:50
msgid "File name"
msgstr ""
@@ -149,11 +149,11 @@ msgstr "For more details, see the hom
msgid "Fork me!"
msgstr "Fork me!"
-#: themes/default/templates/index.html.ep:10 themes/default/templates/index.html.ep:13
+#: themes/default/templates/index.html.ep:10 themes/default/templates/index.html.ep:13 themes/default/templates/myfiles.html.ep:12 themes/default/templates/myfiles.html.ep:15
msgid "Gallery link"
msgstr ""
-#: themes/default/templates/partial/lutim.js.ep:125 themes/default/templates/partial/lutim.js.ep:142
+#: themes/default/templates/partial/common.js.ep:105 themes/default/templates/partial/common.js.ep:88
msgid "Hit Ctrl+C, then Enter to copy the short link"
msgstr ""
@@ -217,7 +217,7 @@ 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:336
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:230
msgid "The file exceed the size limit (%1)"
msgstr "The file exceed the size limit (%1)"
@@ -370,7 +370,7 @@ msgstr ""
msgid "Total"
msgstr ""
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:8
msgid "Tweet it!"
msgstr "Tweet it!"
@@ -395,7 +395,7 @@ msgstr "Unlike many image sharing services, you don't give us rights on uploaded
msgid "Upload an image with its URL"
msgstr "Upload an image with its URL"
-#: themes/default/templates/myfiles.html.ep:17
+#: themes/default/templates/myfiles.html.ep:54
msgid "Uploaded at"
msgstr ""
@@ -408,7 +408,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:14 themes/default/templates/partial/lutim.js.ep:168 themes/default/templates/partial/lutim.js.ep:172
+#: 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:62 themes/default/templates/partial/lutim.js.ep:66
msgid "View link"
msgstr "View link"
diff --git a/themes/default/lib/Lutim/I18N/es.po b/themes/default/lib/Lutim/I18N/es.po
index d12366d..f75d248 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:235 themes/default/templates/partial/lutim.js.ep:244 themes/default/templates/partial/lutim.js.ep:245 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: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:129 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:139 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"
@@ -39,11 +39,11 @@ msgstr "-o-"
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:244 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: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:138 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:79
+#: themes/default/templates/myfiles.html.ep:123
msgid ": Error while trying to get the counter."
msgstr ": Error al intentar obtener el contador."
@@ -55,7 +55,7 @@ msgstr ""
msgid "An error occured while downloading the image."
msgstr "Error al intentar modificar la imagen."
-#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:27 themes/default/templates/stats.html.ep:25
+#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:64 themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Volver a la página inicial"
@@ -67,15 +67,15 @@ msgstr "Clic para abrir el explorador de archivos"
msgid "Contributors"
msgstr "Contribuidores"
-#: themes/default/templates/partial/lutim.js.ep:310 themes/default/templates/partial/lutim.js.ep:363 themes/default/templates/partial/lutim.js.ep:441
+#: themes/default/templates/partial/lutim.js.ep:204 themes/default/templates/partial/lutim.js.ep:257 themes/default/templates/partial/lutim.js.ep:335
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/partial/common.js.ep:45 themes/default/templates/partial/lutim.js.ep:176 themes/default/templates/partial/lutim.js.ep:188 themes/default/templates/partial/lutim.js.ep:202 themes/default/templates/partial/lutim.js.ep:217
+#: 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:111 themes/default/templates/partial/lutim.js.ep:70 themes/default/templates/partial/lutim.js.ep:82 themes/default/templates/partial/lutim.js.ep:96
msgid "Copy to clipboard"
msgstr "Copiar al portapapeles"
-#: themes/default/templates/myfiles.html.ep:15
+#: themes/default/templates/myfiles.html.ep:52
msgid "Counter"
msgstr "Contador"
@@ -87,7 +87,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:16 themes/default/templates/partial/lutim.js.ep:256
+#: 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:150
msgid "Delete at first view?"
msgstr "¿Borrar en la primera vista?"
@@ -99,7 +99,7 @@ msgstr ""
msgid "Deleted images in 30 days"
msgstr ""
-#: themes/default/templates/index.html.ep:98 themes/default/templates/myfiles.html.ep:19 themes/default/templates/partial/common.js.ep:37 themes/default/templates/partial/common.js.ep:40
+#: 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
msgid "Deletion link"
msgstr "Enlace para borrar"
@@ -107,11 +107,11 @@ 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:194 themes/default/templates/partial/lutim.js.ep:198
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:88 themes/default/templates/partial/lutim.js.ep:92
msgid "Download link"
msgstr "Enlace de descarga"
-#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31
+#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31 themes/default/templates/myfiles.html.ep:30 themes/default/templates/myfiles.html.ep:33
msgid "Download zip link"
msgstr "Enlace de descarga del archivo de las imágenes"
@@ -127,7 +127,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:72
+#: themes/default/templates/partial/lutim.js.ep:35
msgid "Error while trying to modify the image."
msgstr "Error al intentar modificar la imagen."
@@ -135,11 +135,11 @@ msgstr "Error al intentar modificar la imagen."
msgid "Evolution of total files"
msgstr "Evolución de archivos en total"
-#: themes/default/templates/myfiles.html.ep:18
+#: themes/default/templates/myfiles.html.ep:55
msgid "Expires at"
msgstr "Expira"
-#: themes/default/templates/myfiles.html.ep:13
+#: themes/default/templates/myfiles.html.ep:50
msgid "File name"
msgstr "Nombre de archivo"
@@ -151,11 +151,11 @@ msgstr "Para más detalles, vea la p
msgid "Fork me!"
msgstr "¡Clóname!"
-#: themes/default/templates/index.html.ep:10 themes/default/templates/index.html.ep:13
+#: themes/default/templates/index.html.ep:10 themes/default/templates/index.html.ep:13 themes/default/templates/myfiles.html.ep:12 themes/default/templates/myfiles.html.ep:15
msgid "Gallery link"
msgstr "Enlace a la galería"
-#: themes/default/templates/partial/lutim.js.ep:125 themes/default/templates/partial/lutim.js.ep:142
+#: themes/default/templates/partial/common.js.ep:105 themes/default/templates/partial/common.js.ep:88
msgid "Hit Ctrl+C, then Enter to copy the short link"
msgstr "Presione Ctrl + C, entonces Ingresar para copiar el enlace"
@@ -219,7 +219,7 @@ 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:336
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:230
msgid "The file exceed the size limit (%1)"
msgstr "El archivo supera el límite de tamaño (%1)"
@@ -372,7 +372,7 @@ msgstr ""
msgid "Total"
msgstr ""
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:8
msgid "Tweet it!"
msgstr "¡Tuitéalo!"
@@ -397,7 +397,7 @@ msgstr "A diferencia de muchos servicios de compartición de imágenes, usted no
msgid "Upload an image with its URL"
msgstr "Subir una imagen con la URL"
-#: themes/default/templates/myfiles.html.ep:17
+#: themes/default/templates/myfiles.html.ep:54
msgid "Uploaded at"
msgstr "Enviado el"
@@ -410,7 +410,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:14 themes/default/templates/partial/lutim.js.ep:168 themes/default/templates/partial/lutim.js.ep:172
+#: 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:62 themes/default/templates/partial/lutim.js.ep:66
msgid "View link"
msgstr "Enlace de visualización"
diff --git a/themes/default/lib/Lutim/I18N/fr.po b/themes/default/lib/Lutim/I18N/fr.po
index 84e3b7f..98f0448 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:235 themes/default/templates/partial/lutim.js.ep:244 themes/default/templates/partial/lutim.js.ep:245 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: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:129 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:139 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"
@@ -39,11 +39,11 @@ msgstr "-ou-"
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:244 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: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:138 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:79
+#: themes/default/templates/myfiles.html.ep:123
msgid ": Error while trying to get the counter."
msgstr " : Erreur en essayant de récupérer le compteur."
@@ -55,7 +55,7 @@ msgstr "Images actives"
msgid "An error occured while downloading the image."
msgstr "Une erreur est survenue lors du téléchargement de l’image."
-#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:27 themes/default/templates/stats.html.ep:25
+#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:64 themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Retour à la page d’accueil"
@@ -67,15 +67,15 @@ msgstr "Cliquez pour utiliser le navigateur de fichier"
msgid "Contributors"
msgstr "Contributeurs"
-#: themes/default/templates/partial/lutim.js.ep:310 themes/default/templates/partial/lutim.js.ep:363 themes/default/templates/partial/lutim.js.ep:441
+#: themes/default/templates/partial/lutim.js.ep:204 themes/default/templates/partial/lutim.js.ep:257 themes/default/templates/partial/lutim.js.ep:335
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/partial/common.js.ep:45 themes/default/templates/partial/lutim.js.ep:176 themes/default/templates/partial/lutim.js.ep:188 themes/default/templates/partial/lutim.js.ep:202 themes/default/templates/partial/lutim.js.ep:217
+#: 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:111 themes/default/templates/partial/lutim.js.ep:70 themes/default/templates/partial/lutim.js.ep:82 themes/default/templates/partial/lutim.js.ep:96
msgid "Copy to clipboard"
msgstr "Copier dans le presse-papier"
-#: themes/default/templates/myfiles.html.ep:15
+#: themes/default/templates/myfiles.html.ep:52
msgid "Counter"
msgstr "Compteur"
@@ -87,7 +87,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:16 themes/default/templates/partial/lutim.js.ep:256
+#: 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:150
msgid "Delete at first view?"
msgstr "Supprimer au premier accès ?"
@@ -99,7 +99,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:19 themes/default/templates/partial/common.js.ep:37 themes/default/templates/partial/common.js.ep:40
+#: 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
msgid "Deletion link"
msgstr "Lien de suppression"
@@ -107,11 +107,11 @@ 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:194 themes/default/templates/partial/lutim.js.ep:198
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:88 themes/default/templates/partial/lutim.js.ep:92
msgid "Download link"
msgstr "Lien de téléchargement"
-#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31
+#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31 themes/default/templates/myfiles.html.ep:30 themes/default/templates/myfiles.html.ep:33
msgid "Download zip link"
msgstr "Lien de téléchargement de l’archive des images"
@@ -127,7 +127,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:72
+#: themes/default/templates/partial/lutim.js.ep:35
msgid "Error while trying to modify the image."
msgstr "Une erreur est survenue en essayant de modifier l’image."
@@ -135,11 +135,11 @@ msgstr "Une erreur est survenue en essayant de modifier l’image."
msgid "Evolution of total files"
msgstr "Évolution du nombre total de fichiers"
-#: themes/default/templates/myfiles.html.ep:18
+#: themes/default/templates/myfiles.html.ep:55
msgid "Expires at"
msgstr "Expire le"
-#: themes/default/templates/myfiles.html.ep:13
+#: themes/default/templates/myfiles.html.ep:50
msgid "File name"
msgstr "Nom du fichier"
@@ -151,11 +151,11 @@ msgstr "Pour plus de détails, consultez la page 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:260
+#: 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:154
msgid "Let's go!"
msgstr "Allons-y !"
@@ -231,7 +231,7 @@ msgstr "Bouton Liberapay"
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:208 themes/default/templates/partial/lutim.js.ep:212
+#: themes/default/templates/index.html.ep:89 themes/default/templates/index.html.ep:91 themes/default/templates/partial/lutim.js.ep:102 themes/default/templates/partial/lutim.js.ep:106
msgid "Link for share on social networks"
msgstr "Lien pour partager sur les réseaux sociaux"
@@ -243,7 +243,7 @@ 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:182 themes/default/templates/partial/lutim.js.ep:185
+#: themes/default/templates/index.html.ep:73 themes/default/templates/index.html.ep:75 themes/default/templates/partial/lutim.js.ep:76 themes/default/templates/partial/lutim.js.ep:79
msgid "Markdown syntax"
msgstr "Syntaxe Markdown"
@@ -251,7 +251,7 @@ msgstr "Syntaxe Markdown"
msgid "My images"
msgstr "Mes images"
-#: themes/default/templates/myfiles.html.ep:39
+#: themes/default/templates/myfiles.html.ep:85
msgid "No limit"
msgstr "Pas de date d’expiration"
@@ -280,7 +280,7 @@ msgstr "Statistiques brutes"
msgid "Send an image"
msgstr "Envoyer une image"
-#: themes/default/templates/partial/lutim.js.ep:51
+#: themes/default/templates/partial/lutim.js.ep:14
msgid "Share it!"
msgstr "Partagez !"
@@ -288,7 +288,7 @@ msgstr "Partagez !"
msgid "Share on Twitter"
msgstr "Partager sur Twitter"
-#: themes/default/templates/index.html.ep:133 themes/default/templates/partial/lutim.js.ep:271
+#: themes/default/templates/index.html.ep:133 themes/default/templates/partial/lutim.js.ep:165
msgid "Something bad happened"
msgstr "Un problème est survenu"
@@ -331,7 +331,7 @@ 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:336
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:230
msgid "The file exceed the size limit (%1)"
msgstr "Le fichier dépasse la limite de taille (%1)"
@@ -374,7 +374,7 @@ msgstr "Bouton Tipeee"
msgid "Total"
msgstr "Total"
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:8
msgid "Tweet it!"
msgstr "Tweetez !"
@@ -399,7 +399,7 @@ msgstr "Au contraire de la majorité des services de partages d’image, vous ne
msgid "Upload an image with its URL"
msgstr "Déposer une image par son URL"
-#: themes/default/templates/myfiles.html.ep:17
+#: themes/default/templates/myfiles.html.ep:54
msgid "Uploaded at"
msgstr "Envoyé le"
@@ -412,7 +412,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:14 themes/default/templates/partial/lutim.js.ep:168 themes/default/templates/partial/lutim.js.ep:172
+#: 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:62 themes/default/templates/partial/lutim.js.ep:66
msgid "View link"
msgstr "Lien d’affichage"
diff --git a/themes/default/lib/Lutim/I18N/oc.po b/themes/default/lib/Lutim/I18N/oc.po
index 9ba94c7..1bdaa5e 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:235 themes/default/templates/partial/lutim.js.ep:244 themes/default/templates/partial/lutim.js.ep:245 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: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:129 themes/default/templates/partial/lutim.js.ep:138 themes/default/templates/partial/lutim.js.ep:139 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"
@@ -38,11 +38,11 @@ msgstr "-o-"
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:244 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: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:138 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:79
+#: themes/default/templates/myfiles.html.ep:123
msgid ": Error while trying to get the counter."
msgstr " : Error al moment de recuperar lo comptador."
@@ -54,7 +54,7 @@ msgstr "Imatges actius"
msgid "An error occured while downloading the image."
msgstr "Una error es apareguda pendent lo telecargament de l'imatge."
-#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:27 themes/default/templates/stats.html.ep:25
+#: themes/default/templates/about.html.ep:41 themes/default/templates/myfiles.html.ep:64 themes/default/templates/stats.html.ep:25
msgid "Back to homepage"
msgstr "Tornar a la pagina d'acuèlh"
@@ -66,15 +66,15 @@ msgstr "Clicatz per utilizar lo navigador de fichièr"
msgid "Contributors"
msgstr "Contributors"
-#: themes/default/templates/partial/lutim.js.ep:310 themes/default/templates/partial/lutim.js.ep:363 themes/default/templates/partial/lutim.js.ep:441
+#: themes/default/templates/partial/lutim.js.ep:204 themes/default/templates/partial/lutim.js.ep:257 themes/default/templates/partial/lutim.js.ep:335
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/partial/common.js.ep:45 themes/default/templates/partial/lutim.js.ep:176 themes/default/templates/partial/lutim.js.ep:188 themes/default/templates/partial/lutim.js.ep:202 themes/default/templates/partial/lutim.js.ep:217
+#: 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:111 themes/default/templates/partial/lutim.js.ep:70 themes/default/templates/partial/lutim.js.ep:82 themes/default/templates/partial/lutim.js.ep:96
msgid "Copy to clipboard"
msgstr "Copiar dins lo quichapapièrs"
-#: themes/default/templates/myfiles.html.ep:15
+#: themes/default/templates/myfiles.html.ep:52
msgid "Counter"
msgstr "Comptador"
@@ -86,7 +86,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:16 themes/default/templates/partial/lutim.js.ep:256
+#: 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:150
msgid "Delete at first view?"
msgstr "Suprimir al primièr accès ?"
@@ -98,7 +98,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:19 themes/default/templates/partial/common.js.ep:37 themes/default/templates/partial/common.js.ep:40
+#: 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
msgid "Deletion link"
msgstr "Ligam de supression"
@@ -106,11 +106,11 @@ 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:194 themes/default/templates/partial/lutim.js.ep:198
+#: themes/default/templates/index.html.ep:81 themes/default/templates/index.html.ep:83 themes/default/templates/partial/lutim.js.ep:88 themes/default/templates/partial/lutim.js.ep:92
msgid "Download link"
msgstr "Ligam de telecargament"
-#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31
+#: themes/default/templates/index.html.ep:28 themes/default/templates/index.html.ep:31 themes/default/templates/myfiles.html.ep:30 themes/default/templates/myfiles.html.ep:33
msgid "Download zip link"
msgstr "Ligam de telecargament de l'archiu dels imatges"
@@ -126,7 +126,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:72
+#: themes/default/templates/partial/lutim.js.ep:35
msgid "Error while trying to modify the image."
msgstr "Una error es apareguda al moment de modificar l'imatge."
@@ -134,11 +134,11 @@ msgstr "Una error es apareguda al moment de modificar l'imatge."
msgid "Evolution of total files"
msgstr "Evolucion del nombre total de fichièrs"
-#: themes/default/templates/myfiles.html.ep:18
+#: themes/default/templates/myfiles.html.ep:55
msgid "Expires at"
msgstr "Expira lo"
-#: themes/default/templates/myfiles.html.ep:13
+#: themes/default/templates/myfiles.html.ep:50
msgid "File name"
msgstr "Nom del fichièr"
@@ -150,11 +150,11 @@ msgstr "Per mai de detalhs, consultatz la pagina 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:336
+#: lib/Lutim/Controller.pm:271 lib/Lutim/Controller.pm:340 themes/default/templates/partial/lutim.js.ep:230
msgid "The file exceed the size limit (%1)"
msgstr "Lo fichièr depassa lo limit de talha (%1)"
@@ -371,7 +371,7 @@ msgstr ""
msgid "Total"
msgstr "Total"
-#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:45
+#: themes/default/templates/index.html.ep:60 themes/default/templates/partial/lutim.js.ep:8
msgid "Tweet it!"
msgstr "Tweetejatz !"
@@ -396,7 +396,7 @@ msgstr "A l'invèrse de la màger part dels servicis de partiment d'imatge, dais
msgid "Upload an image with its URL"
msgstr "Depausar un imatge per son URL"
-#: themes/default/templates/myfiles.html.ep:17
+#: themes/default/templates/myfiles.html.ep:54
msgid "Uploaded at"
msgstr "Mandat lo"
@@ -409,7 +409,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:14 themes/default/templates/partial/lutim.js.ep:168 themes/default/templates/partial/lutim.js.ep:172
+#: 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:62 themes/default/templates/partial/lutim.js.ep:66
msgid "View link"
msgstr "Ligam d'afichatge"
diff --git a/themes/default/templates/myfiles.html.ep b/themes/default/templates/myfiles.html.ep
index e9d2dda..135fcd9 100644
--- a/themes/default/templates/myfiles.html.ep
+++ b/themes/default/templates/myfiles.html.ep
@@ -6,10 +6,47 @@
<%= l('Only the images sent with this browser will be listed here. The informations are stored in localStorage: if you delete your localStorage data, you\'ll loose this informations.') %>
+
+
+ |
<%= l('File name') %> |
<%= l('View link') %> |
<%= l('Counter') %> |
@@ -28,6 +65,15 @@
%= include 'partial/common', format => 'js'
%= javascript begin
+ function onCheck(e, short, ext) {
+ if (e.is(':checked')) {
+ addToShortHash(short+'.'+ext);
+ addToZipHash(short);
+ } else {
+ rmFromShortHash(short+'.'+ext);
+ rmFromZipHash(short);
+ }
+ }
function populateFilesTable() {
var files = JSON.parse(localStorage.getItem('images'));
files.reverse();
@@ -39,20 +85,18 @@
var limit = (element.limit === 0) ? '<%= l('No limit') %>' : moment.unix(element.limit * 86400 + element.created_at).locale(window.navigator.language).format('LLLL');
var created_at = moment.unix(element.created_at).locale(window.navigator.language).format('LLLL');
- var tr = '
| '
- +element.filename
- +' | '
- +''+vlink+''
- +' | '
- +' | '
- +del_view
- +' | '
- +created_at
- +' | '
- +limit
- +' | '
- +''+dlink+''
- +' |
';
+ var tr = [
+ '',
+ ' | ',
+ '', element.filename, ' | ',
+ '',vlink,' | ',
+ ' | ',
+ '', del_view, ' | ',
+ '', created_at, ' | ',
+ '', limit, ' | ',
+ '',dlink,' | ',
+ '
'
+ ].join('');
$('#myfiles').append(tr);
$('#del-'+real_short).on('click', delImage);
diff --git a/themes/default/templates/partial/common.js.ep b/themes/default/templates/partial/common.js.ep
index 60c6788..af7f5b1 100644
--- a/themes/default/templates/partial/common.js.ep
+++ b/themes/default/templates/partial/common.js.ep
@@ -1,5 +1,111 @@
% # vim:set sw=4 ts=4 sts=4 ft=javascript expandtab:
%= javascript begin
+ window.gallery_url = '<%= url_for('gallery')->to_abs %>#';
+ window.zip_url = '<%= url_for('zip')->to_abs %>?i=';
+ window.short_hash = {};
+ window.zip_hash = {};
+ function addToShortHash(short) {
+ window.short_hash[short] = 1;
+ console.debug(window.short_hash);
+ if (Object.keys(window.short_hash).length > 0) {
+ $('#gallery-url').removeClass('hidden');
+ $('#gallery-url-input').val(window.gallery_url+Object.keys(window.short_hash).join(','));
+ $('#gallery-url-link').attr('href', window.gallery_url+Object.keys(window.short_hash).join(','));
+ }
+ }
+ function rmFromShortHash(short) {
+ delete window.short_hash[short];
+ $('#gallery-url-input').val(window.gallery_url+Object.keys(window.short_hash).join(','));
+ $('#gallery-url-link').attr('href', window.gallery_url+Object.keys(window.short_hash).join(','));
+ if (Object.keys(window.short_hash).length === 0) {
+ $('#gallery-url').addClass('hidden');
+ }
+ }
+ function addToZipHash(short) {
+ window.zip_hash[short] = 1;
+ if (Object.keys(window.zip_hash).length > 0) {
+ $('#zip-url').removeClass('hidden');
+ $('#zip-url-input').val(window.zip_url+Object.keys(window.zip_hash).join('&i='));
+ $('#zip-url-link').attr('href', window.zip_url+Object.keys(window.zip_hash).join('&i='));
+ }
+ }
+ function rmFromZipHash(short) {
+ delete window.zip_hash[short];
+ $('#zip-url-input').val(window.zip_url+Object.keys(window.zip_hash).join('&i='));
+ $('#zip-url-link').attr('href', window.zip_url+Object.keys(window.zip_hash).join('&i='));
+ if (Object.keys(window.zip_hash).length === 0) {
+ $('#zip-url').addClass('hidden');
+ }
+ }
+ /* Stolen from https://github.com/mozilla-services/push-dev-dashboard/blob/3ad4de737380d0842f40c82301d1f748c1b20f2b/push/static/js/validation.js */
+ function createNode(text) {
+ var node = document.createElement('pre');
+ node.style.width = '1px';
+ node.style.height = '1px';
+ node.style.position = 'fixed';
+ node.style.top = '5px';
+ node.textContent = text;
+ return node;
+ }
+
+ function copyNode(node) {
+ var selection = getSelection();
+ selection.removeAllRanges();
+
+ var range = document.createRange();
+ range.selectNodeContents(node);
+ selection.addRange(range);
+
+ var success = document.execCommand('copy');
+ selection.removeAllRanges();
+ return success;
+ }
+
+ function copyText(text) {
+ var node = createNode(text);
+ document.body.appendChild(node);
+ var success = copyNode(node);
+ document.body.removeChild(node);
+ return success;
+ }
+
+ function copyInput(node) {
+ node.select();
+ var success = document.execCommand('copy');
+ getSelection().removeAllRanges();
+ return success;
+ }
+ function copyToClipboard(el) {
+ el = el.siblings('input');
+ try {
+ var successful = copyInput(el);
+ var msg = successful ? 'successful' : 'unsuccessful';
+ console.debug('Copying text command was ' + msg);
+ if (!successful) {
+ throw new Error('Copying text command was ' + msg);
+ }
+ } catch (err) {
+ prompt('<%= l('Hit Ctrl+C, then Enter to copy the short link') %>', el.val());
+ }
+ }
+ function copyAllToClipboard() {
+ var text = new Array();
+ $('.view-link-input').each(function(index) {
+ text.push($(this).val());
+ });
+
+ try {
+ var successful = copyText(text.join("\n"));
+ var msg = successful ? 'successful' : 'unsuccessful';
+ console.debug('Copying text command was ' + msg);
+ if (!successful) {
+ throw new Error('Copying text command was ' + msg);
+ }
+ } catch (err) {
+ prompt('<%= l('Hit Ctrl+C, then Enter to copy the short link') %>', text.join(" "));
+ }
+
+ }
function delImage() {
var short = $(this).attr('data-short');
var token = $(this).attr('data-token');
diff --git a/themes/default/templates/partial/lutim.js.ep b/themes/default/templates/partial/lutim.js.ep
index 79481e3..781a909 100644
--- a/themes/default/templates/partial/lutim.js.ep
+++ b/themes/default/templates/partial/lutim.js.ep
@@ -1,42 +1,5 @@
% # vim:set sw=4 ts=4 sts=4 ft=javascript expandtab:
%= javascript begin
- window.gallery_url = '<%= url_for('gallery')->to_abs %>#';
- window.zip_url = '<%= url_for('zip')->to_abs %>?i=';
- window.short_hash = {};
- window.zip_hash = {};
- function addToShortHash(short) {
- window.short_hash[short] = 1;
- console.debug(window.short_hash);
- if (Object.keys(window.short_hash).length > 0) {
- $('#gallery-url').removeClass('hidden');
- $('#gallery-url-input').val(window.gallery_url+Object.keys(window.short_hash).join(','));
- $('#gallery-url-link').attr('href', window.gallery_url+Object.keys(window.short_hash).join(','));
- }
- }
- function rmFromShortHash(short) {
- delete window.short_hash[short];
- $('#gallery-url-input').val(window.gallery_url+Object.keys(window.short_hash).join(','));
- $('#gallery-url-link').attr('href', window.gallery_url+Object.keys(window.short_hash).join(','));
- if (Object.keys(window.short_hash).length === 0) {
- $('#gallery-url').addClass('hidden');
- }
- }
- function addToZipHash(short) {
- window.zip_hash[short] = 1;
- if (Object.keys(window.zip_hash).length > 0) {
- $('#zip-url').removeClass('hidden');
- $('#zip-url-input').val(window.zip_url+Object.keys(window.zip_hash).join('&i='));
- $('#zip-url-link').attr('href', window.zip_url+Object.keys(window.zip_hash).join('&i='));
- }
- }
- function rmFromZipHash(short) {
- delete window.zip_hash[short];
- $('#zip-url-input').val(window.zip_url+Object.keys(window.zip_hash).join('&i='));
- $('#zip-url-link').attr('href', window.zip_url+Object.keys(window.zip_hash).join('&i='));
- if (Object.keys(window.zip_hash).length === 0) {
- $('#zip-url').addClass('hidden');
- }
- }
function selectInput() {
$(this).select();
}
@@ -74,75 +37,6 @@
});
}
- /* Stolen from https://github.com/mozilla-services/push-dev-dashboard/blob/3ad4de737380d0842f40c82301d1f748c1b20f2b/push/static/js/validation.js */
- function createNode(text) {
- var node = document.createElement('pre');
- node.style.width = '1px';
- node.style.height = '1px';
- node.style.position = 'fixed';
- node.style.top = '5px';
- node.textContent = text;
- return node;
- }
-
- function copyNode(node) {
- var selection = getSelection();
- selection.removeAllRanges();
-
- var range = document.createRange();
- range.selectNodeContents(node);
- selection.addRange(range);
-
- var success = document.execCommand('copy');
- selection.removeAllRanges();
- return success;
- }
-
- function copyText(text) {
- var node = createNode(text);
- document.body.appendChild(node);
- var success = copyNode(node);
- document.body.removeChild(node);
- return success;
- }
-
- function copyInput(node) {
- node.select();
- var success = document.execCommand('copy');
- getSelection().removeAllRanges();
- return success;
- }
- function copyToClipboard(el) {
- el = el.siblings('input');
- try {
- var successful = copyInput(el);
- var msg = successful ? 'successful' : 'unsuccessful';
- console.debug('Copying text command was ' + msg);
- if (!successful) {
- throw new Error('Copying text command was ' + msg);
- }
- } catch (err) {
- prompt('<%= l('Hit Ctrl+C, then Enter to copy the short link') %>', el.val());
- }
- }
- function copyAllToClipboard() {
- var text = new Array();
- $('.view-link-input').each(function(index) {
- text.push($(this).val());
- });
-
- try {
- var successful = copyText(text.join("\n"));
- var msg = successful ? 'successful' : 'unsuccessful';
- console.debug('Copying text command was ' + msg);
- if (!successful) {
- throw new Error('Copying text command was ' + msg);
- }
- } catch (err) {
- prompt('<%= l('Hit Ctrl+C, then Enter to copy the short link') %>', text.join(" "));
- }
-
- }
function buildMessage(success, msg) {
if(success) {
var s_url = link([msg.short, '.', msg.ext].join(''), '');