Commit d2d445c6 authored by Luc Didry's avatar Luc Didry

Add a page about the browsers extensions

parent adf55b09
Pipeline #10546 passed with stage
in 5 minutes 8 seconds
......@@ -369,6 +369,10 @@ sub startup {
shift->render(template => 'api');
})->name('api');
$r->get('/extensions' => sub {
shift->render(template => 'extensions');
})->name('extensions');
$r->post('/stats')
->to('Admin#login');
......
......@@ -20,7 +20,7 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:108
#: lib/Lstu/Controller/Lstu.pm:109
msgid "%1 is not a valid URL."
msgstr ""
......@@ -36,6 +36,10 @@ msgstr ""
msgid "Bad password"
msgstr ""
#: themes/default/templates/layouts/default.html.ep:69
msgid "Browser extensions"
msgstr ""
#: themes/default/templates/index.html.ep:20
msgid "Copy to clipboard"
msgstr ""
......@@ -105,7 +109,7 @@ msgid "Next"
msgstr ""
#. ($c->config('contact')
#: lib/Lstu/Controller/Lstu.pm:100
#: lib/Lstu/Controller/Lstu.pm:101
msgid "No shortened URL available. Please retry or contact the administrator at %1. Your URL to shorten: %2"
msgstr ""
......@@ -113,7 +117,7 @@ msgstr ""
msgid "Parameters:"
msgstr ""
#: lib/Lstu.pm:353
#: lib/Lstu.pm:354
msgid "Please, check your credentials: unable to authenticate."
msgstr ""
......@@ -142,27 +146,27 @@ msgid "Statistics"
msgstr ""
#. ($url->host)
#: lib/Lstu.pm:226
#: lib/Lstu.pm:227
msgid "The URL host or one of its redirection(s) (%1) is blacklisted at Spamhaus. I refuse to shorten it."
msgstr ""
#. ($url->host)
#: lib/Lstu.pm:239
#: lib/Lstu.pm:240
msgid "The URL redirects 3 times or most. It's most likely a dangerous URL (spam, phishing, etc.). I refuse to shorten it."
msgstr ""
#. ($c->url_for('/')
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:275
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:279
msgid "The shortened URL %1 doesn't exist."
msgstr ""
#. ($custom_url)
#: lib/Lstu/Controller/Lstu.pm:52
#: lib/Lstu/Controller/Lstu.pm:53
msgid "The shortened text (%1) is already used. Please choose another one."
msgstr ""
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:50
#: lib/Lstu/Controller/Lstu.pm:51
msgid "The shortened text can contain only numbers, letters and the - and _ character, can't be \"a\", \"api\", \"d\" or \"stats\" or end with \".json\". Your URL to shorten: %1"
msgstr ""
......@@ -179,7 +183,7 @@ msgid "URL to shorten"
msgstr ""
#. ($penalty/3600)
#: lib/Lstu/Controller/Lstu.pm:26
#: lib/Lstu/Controller/Lstu.pm:27
msgid "You asked to shorten too many URLs too quickly. You're banned for %1 hour(s)."
msgstr ""
......
......@@ -23,7 +23,7 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:108
#: lib/Lstu/Controller/Lstu.pm:109
msgid "%1 is not a valid URL."
msgstr "%1 n’est pas une URL valide."
......@@ -39,6 +39,10 @@ msgstr "Mot de passe administrateur"
msgid "Bad password"
msgstr "Mot de passe incorrect"
#: themes/default/templates/layouts/default.html.ep:69
msgid "Browser extensions"
msgstr "Extensions navigateur"
#: themes/default/templates/index.html.ep:20
msgid "Copy to clipboard"
msgstr "Copier dans le presse-papier"
......@@ -108,7 +112,7 @@ msgid "Next"
msgstr "Suivant"
#. ($c->config('contact')
#: lib/Lstu/Controller/Lstu.pm:100
#: lib/Lstu/Controller/Lstu.pm:101
msgid "No shortened URL available. Please retry or contact the administrator at %1. Your URL to shorten: %2"
msgstr "Il n’y a plus d’URL raccourcie disponible. Veuillez réessayer ou contactez l’administrateur sur %1. Rappel de l’URL à raccourcir : %2"
......@@ -116,7 +120,7 @@ msgstr "Il n’y a plus d’URL raccourcie disponible. Veuillez réessayer ou co
msgid "Parameters:"
msgstr "Paramètres :"
#: lib/Lstu.pm:353
#: lib/Lstu.pm:354
msgid "Please, check your credentials: unable to authenticate."
msgstr "Impossible de s’authentifier, veuillez vérifier vos identifiants"
......@@ -145,27 +149,27 @@ msgid "Statistics"
msgstr "Statistiques"
#. ($url->host)
#: lib/Lstu.pm:226
#: lib/Lstu.pm:227
msgid "The URL host or one of its redirection(s) (%1) is blacklisted at Spamhaus. I refuse to shorten it."
msgstr "L'hôte de l'URL ou d'une de ses redirections (%1) est considéré comme nocif par Spamhaus. Je refuse de la raccourcir."
#. ($url->host)
#: lib/Lstu.pm:239
#: lib/Lstu.pm:240
msgid "The URL redirects 3 times or most. It's most likely a dangerous URL (spam, phishing, etc.). I refuse to shorten it."
msgstr "L'URL redirige 3 fois ou plus vers un autre site. Il est probable qu'il s'agisse d'une URL dangereuse (pourriel, hameçonnage, etc.). Je refuse de la raccourcir."
#. ($c->url_for('/')
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:275
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:279
msgid "The shortened URL %1 doesn't exist."
msgstr "L’URL raccourcie %1 n’existe pas"
#. ($custom_url)
#: lib/Lstu/Controller/Lstu.pm:52
#: lib/Lstu/Controller/Lstu.pm:53
msgid "The shortened text (%1) is already used. Please choose another one."
msgstr "Le texte du raccourci (%1) est déjà utilisé. Veuillez en choisir un autre"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:50
#: lib/Lstu/Controller/Lstu.pm:51
msgid "The shortened text can contain only numbers, letters and the - and _ character, can't be \"a\", \"api\", \"d\" or \"stats\" or end with \".json\". Your URL to shorten: %1"
msgstr "Le texte du raccourci ne doit contenir que des chiffres, des lettres et les caractères - et _, ne peut être \"a\", \"api\", \"d\" ou \"stats\" ou se terminer par \".json\". Rappel de l’URL à raccourcir : %1"
......@@ -182,7 +186,7 @@ msgid "URL to shorten"
msgstr "URL à raccourcir"
#. ($penalty/3600)
#: lib/Lstu/Controller/Lstu.pm:26
#: lib/Lstu/Controller/Lstu.pm:27
msgid "You asked to shorten too many URLs too quickly. You're banned for %1 hour(s)."
msgstr "Vous avez demandé à réduire trop d’URLs en trop peu de temps. Vous êtes banni pour %1 heure(s)."
......
......@@ -23,7 +23,7 @@ msgstr ""
"X-Poedit-SourceCharset: UTF-8\n"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:108
#: lib/Lstu/Controller/Lstu.pm:109
msgid "%1 is not a valid URL."
msgstr "%1 es pas una URL valida."
......@@ -39,6 +39,10 @@ msgstr "Senhal administrator"
msgid "Bad password"
msgstr "Senhal incorrèct"
#: themes/default/templates/layouts/default.html.ep:69
msgid "Browser extensions"
msgstr ""
#: themes/default/templates/index.html.ep:20
msgid "Copy to clipboard"
msgstr "Copiar al quichapapièrs"
......@@ -108,7 +112,7 @@ msgid "Next"
msgstr "Seguent"
#. ($c->config('contact')
#: lib/Lstu/Controller/Lstu.pm:100
#: lib/Lstu/Controller/Lstu.pm:101
msgid "No shortened URL available. Please retry or contact the administrator at %1. Your URL to shorten: %2"
msgstr "I a pas mai d’URL acorchadas disponiblas. Mercés de tornar ensejar o de contactar l’administrator sus %1. Recòrd de l’URL per acorchar : %2"
......@@ -116,7 +120,7 @@ msgstr "I a pas mai d’URL acorchadas disponiblas. Mercés de tornar ensejar o
msgid "Parameters:"
msgstr "Paramètres :"
#: lib/Lstu.pm:353
#: lib/Lstu.pm:354
msgid "Please, check your credentials: unable to authenticate."
msgstr ""
......@@ -145,27 +149,27 @@ msgid "Statistics"
msgstr "Estatisticas"
#. ($url->host)
#: lib/Lstu.pm:226
#: lib/Lstu.pm:227
msgid "The URL host or one of its redirection(s) (%1) is blacklisted at Spamhaus. I refuse to shorten it."
msgstr "L’òste de l’URL o d’una de sas redireccions (%1) es considerat coma nociu per Spamhaus. Refusi de l’acorchar."
#. ($url->host)
#: lib/Lstu.pm:239
#: lib/Lstu.pm:240
msgid "The URL redirects 3 times or most. It's most likely a dangerous URL (spam, phishing, etc.). I refuse to shorten it."
msgstr "L’URL endralha 3 còps o mai cap a un a autre site. Pòt èsser una URL dangerossa (porrièl, pesca electronica, etc). Refusi de l’acorchar"
#. ($c->url_for('/')
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:275
#: lib/Lstu/Controller/Admin.pm:83 lib/Lstu/Controller/Lstu.pm:279
msgid "The shortened URL %1 doesn't exist."
msgstr "L’URL acorchada %1 existís pas"
#. ($custom_url)
#: lib/Lstu/Controller/Lstu.pm:52
#: lib/Lstu/Controller/Lstu.pm:53
msgid "The shortened text (%1) is already used. Please choose another one."
msgstr "Lo tèxte de l’acorchi (%1) es ja utilizat. Mercés de ne causir un autre"
#. ($url)
#: lib/Lstu/Controller/Lstu.pm:50
#: lib/Lstu/Controller/Lstu.pm:51
msgid "The shortened text can contain only numbers, letters and the - and _ character, can't be \"a\", \"api\", \"d\" or \"stats\" or end with \".json\". Your URL to shorten: %1"
msgstr "Lo tèxte de l’acorchi deu pas que contenir de chifras, letras e los caractèrs - e _, èsser \"a\", \"api\", \"d\" o \"stats\" o acabar per \".json\". Recòrd de l’URL per acorchar : %1"
......@@ -182,7 +186,7 @@ msgid "URL to shorten"
msgstr "URL per acorchar"
#. ($penalty/3600)
#: lib/Lstu/Controller/Lstu.pm:26
#: lib/Lstu/Controller/Lstu.pm:27
msgid "You asked to shorten too many URLs too quickly. You're banned for %1 hour(s)."
msgstr "Avètz demandat d’acorchar tròp d'URL en pauc de temps. Sètz bandit per %1 ora(s)."
......
% # vim:set sw=4 ts=4 sts=4 ft=html.epl expandtab:
<ul>
<li><%= link_to 'Firefox' => 'https://addons.mozilla.org/fr/firefox/addon/frama-link-shortener/' %></li>
<li><%= link_to 'Chrome/Chomium' => 'https://chrome.google.com/webstore/detail/framalink-shortener/iaifohljkblilajpaengcgfnobjdmlpd' %></li>
</ul>
......@@ -66,6 +66,7 @@
% } else {
<%= link_to l('Statistics') => url_for('stats') %>
% }
<%= link_to l('Browser extensions') => url_for('extensions') %>
</small>
</p>
<%= content %>
......
......@@ -38,7 +38,7 @@
<small>&copy; 2013 — 2017 <%= link_to 'Luc Didry' => 'https://fiat-tux.fr' %> —
<%= l('License:') %> <%= link_to 'WTFPL' => 'http://www.wtfpl.net/' %> —
<%= link_to l('About') => 'https://framagit.org/luc/lstu#tab-readme' %> —
<%= link_to 'API' => url_for('api') %> —
<%= link_to 'API' => url_for('api') %> —
% if (defined(config('ldap')) || defined(config('htpasswd'))) {
% if (is_user_authenticated()) {
<%= link_to l('Statistics') => url_for('stats') %> —
......@@ -49,6 +49,7 @@
% } else {
<%= link_to l('Statistics') => url_for('stats') %>
% }
<%= link_to l('Browser extensions') => url_for('extensions') %>
</small>
</p>
<%= content %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment