Commit 66f2af9b authored by Luc Didry's avatar Luc Didry
Browse files

Add Minion dashboard

parent 4c936675
......@@ -82,7 +82,9 @@ sub startup {
$self->plugin('Dolomon::Plugin::Helpers');
$self->plugin('Minion' => {Pg => $self->pg_url($self->config->{minion_db})});
$self->plugin('Minion' => { Pg => $self->pg_url($self->config->{minion_db}) });
$self->plugin('Minion::Admin' => { return_to => '/admin', route => $self->routes->over(is_admin => 1)->any('/admin/minion') });
$self->plugin('authentication' =>
{
......
......@@ -202,7 +202,7 @@ msgstr ""
msgid "Children"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:17
#: themes/default/templates/misc/admin.html.ep:18
msgid "Clear input"
msgstr ""
......@@ -214,7 +214,7 @@ msgstr ""
msgid "Confirm"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:39
#: themes/default/templates/misc/admin.html.ep:40
msgid "Confirmed"
msgstr ""
......@@ -247,7 +247,7 @@ msgstr ""
msgid "Dashboard"
msgstr ""
#: lib/Dolomon.pm:176 lib/Dolomon/Controller/Users.pm:614
#: lib/Dolomon.pm:178 lib/Dolomon/Controller/Users.pm:614
msgid "Default"
msgstr ""
......@@ -317,7 +317,7 @@ msgstr ""
msgid "Dolos"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:41
#: themes/default/templates/misc/admin.html.ep:42
msgid "Dolos number"
msgstr ""
......@@ -325,7 +325,7 @@ msgstr ""
msgid "Download datas in CSV format"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:38
#: themes/default/templates/misc/admin.html.ep:39
msgid "Email"
msgstr ""
......@@ -353,7 +353,7 @@ msgstr ""
msgid "Expired?"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:36 themes/default/templates/misc/index.html.ep:37 themes/default/templates/misc/index.html.ep:38 themes/default/templates/users/index.html.ep:11 themes/default/templates/users/index.html.ep:12
#: themes/default/templates/misc/admin.html.ep:37 themes/default/templates/misc/index.html.ep:37 themes/default/templates/misc/index.html.ep:38 themes/default/templates/users/index.html.ep:11 themes/default/templates/users/index.html.ep:12
msgid "First name"
msgstr ""
......@@ -454,11 +454,11 @@ msgstr ""
msgid "Last %1 weeks"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:40
#: themes/default/templates/misc/admin.html.ep:41
msgid "Last login"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:37 themes/default/templates/misc/index.html.ep:43 themes/default/templates/misc/index.html.ep:44 themes/default/templates/users/index.html.ep:13 themes/default/templates/users/index.html.ep:14
#: themes/default/templates/misc/admin.html.ep:38 themes/default/templates/misc/index.html.ep:43 themes/default/templates/misc/index.html.ep:44 themes/default/templates/users/index.html.ep:13 themes/default/templates/users/index.html.ep:14
msgid "Last name"
msgstr ""
......@@ -466,11 +466,11 @@ msgstr ""
msgid "License"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:26
#: themes/default/templates/misc/admin.html.ep:27
msgid "Loading…"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:35 themes/default/templates/misc/index.html.ep:18 themes/default/templates/misc/index.html.ep:19 themes/default/templates/misc/index.html.ep:31 themes/default/templates/misc/index.html.ep:32
#: themes/default/templates/misc/admin.html.ep:36 themes/default/templates/misc/index.html.ep:18 themes/default/templates/misc/index.html.ep:19 themes/default/templates/misc/index.html.ep:31 themes/default/templates/misc/index.html.ep:32
msgid "Login"
msgstr ""
......@@ -478,7 +478,7 @@ msgstr ""
msgid "Login already taken. Choose another one."
msgstr ""
#: themes/default/templates/misc/admin.html.ep:13
#: themes/default/templates/misc/admin.html.ep:14
msgid "Login or email"
msgstr ""
......@@ -615,6 +615,10 @@ msgstr ""
msgid "Resend confirmation mail"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:6
msgid "See job queue"
msgstr ""
#: themes/default/templates/dolos/show.html.ep:70
msgid "See parent"
msgstr ""
......@@ -1057,7 +1061,7 @@ msgstr ""
msgid "You already have that URL in the dolos of this category."
msgstr ""
#: lib/Dolomon.pm:441
#: lib/Dolomon.pm:443
msgid "You are not authenticated or have not valid application credentials"
msgstr ""
......
......@@ -202,7 +202,7 @@ msgstr "Changer le mot de passe"
msgid "Children"
msgstr "Enfants"
#: themes/default/templates/misc/admin.html.ep:17
#: themes/default/templates/misc/admin.html.ep:18
msgid "Clear input"
msgstr "Vider le champ"
......@@ -214,7 +214,7 @@ msgstr "Fermer"
msgid "Confirm"
msgstr "Confirmer"
#: themes/default/templates/misc/admin.html.ep:39
#: themes/default/templates/misc/admin.html.ep:40
msgid "Confirmed"
msgstr "Confirmé"
......@@ -247,7 +247,7 @@ msgstr "Créé le"
msgid "Dashboard"
msgstr "Tableau de bord"
#: lib/Dolomon.pm:176 lib/Dolomon/Controller/Users.pm:614
#: lib/Dolomon.pm:178 lib/Dolomon/Controller/Users.pm:614
msgid "Default"
msgstr "Défaut"
......@@ -317,7 +317,7 @@ msgstr "Dolomon traite les tâches en attente sans pénaliser les performances d
msgid "Dolos"
msgstr "Dolos"
#: themes/default/templates/misc/admin.html.ep:41
#: themes/default/templates/misc/admin.html.ep:42
msgid "Dolos number"
msgstr "Nombre de dolos"
......@@ -325,7 +325,7 @@ msgstr "Nombre de dolos"
msgid "Download datas in CSV format"
msgstr "Télécharger les données au format CSV"
#: themes/default/templates/misc/admin.html.ep:38
#: themes/default/templates/misc/admin.html.ep:39
msgid "Email"
msgstr "Courriel"
......@@ -353,7 +353,7 @@ msgstr "Expiré"
msgid "Expired?"
msgstr "Expiré ?"
#: themes/default/templates/misc/admin.html.ep:36 themes/default/templates/misc/index.html.ep:37 themes/default/templates/misc/index.html.ep:38 themes/default/templates/users/index.html.ep:11 themes/default/templates/users/index.html.ep:12
#: themes/default/templates/misc/admin.html.ep:37 themes/default/templates/misc/index.html.ep:37 themes/default/templates/misc/index.html.ep:38 themes/default/templates/users/index.html.ep:11 themes/default/templates/users/index.html.ep:12
msgid "First name"
msgstr "Prénom"
......@@ -454,11 +454,11 @@ msgstr "%1 derniers mois"
msgid "Last %1 weeks"
msgstr "%1 dernières semaines"
#: themes/default/templates/misc/admin.html.ep:40
#: themes/default/templates/misc/admin.html.ep:41
msgid "Last login"
msgstr "Dernière connexion"
#: themes/default/templates/misc/admin.html.ep:37 themes/default/templates/misc/index.html.ep:43 themes/default/templates/misc/index.html.ep:44 themes/default/templates/users/index.html.ep:13 themes/default/templates/users/index.html.ep:14
#: themes/default/templates/misc/admin.html.ep:38 themes/default/templates/misc/index.html.ep:43 themes/default/templates/misc/index.html.ep:44 themes/default/templates/users/index.html.ep:13 themes/default/templates/users/index.html.ep:14
msgid "Last name"
msgstr "Nom"
......@@ -466,11 +466,11 @@ msgstr "Nom"
msgid "License"
msgstr "Licence"
#: themes/default/templates/misc/admin.html.ep:26
#: themes/default/templates/misc/admin.html.ep:27
msgid "Loading…"
msgstr "Chargement…"
#: themes/default/templates/misc/admin.html.ep:35 themes/default/templates/misc/index.html.ep:18 themes/default/templates/misc/index.html.ep:19 themes/default/templates/misc/index.html.ep:31 themes/default/templates/misc/index.html.ep:32
#: themes/default/templates/misc/admin.html.ep:36 themes/default/templates/misc/index.html.ep:18 themes/default/templates/misc/index.html.ep:19 themes/default/templates/misc/index.html.ep:31 themes/default/templates/misc/index.html.ep:32
msgid "Login"
msgstr "Identifiant"
......@@ -478,7 +478,7 @@ msgstr "Identifiant"
msgid "Login already taken. Choose another one."
msgstr "Identifiant déjà utilisé. Veuillez en choisir un autre."
#: themes/default/templates/misc/admin.html.ep:13
#: themes/default/templates/misc/admin.html.ep:14
msgid "Login or email"
msgstr "Identifiant ou courriel"
......@@ -615,6 +615,10 @@ msgstr "Renommer l’étiquette"
msgid "Resend confirmation mail"
msgstr "Renvoyer le courriel de confirmation"
#: themes/default/templates/misc/admin.html.ep:6
msgid "See job queue"
msgstr "Voir la file de traitement des tâches"
#: themes/default/templates/dolos/show.html.ep:70
msgid "See parent"
msgstr "Voir le parent"
......@@ -1057,7 +1061,7 @@ msgstr "Vous avez déjà un dolo dont l’URL dolomon est %1."
msgid "You already have that URL in the dolos of this category."
msgstr "Vous avez déjà cette URL dans les dolos de cette catégorie."
#: lib/Dolomon.pm:441
#: lib/Dolomon.pm:443
msgid "You are not authenticated or have not valid application credentials"
msgstr "Vous n’êtes pas authentifié·e ou n’avez pas d’identifiants d’application valides"
......
......@@ -3,6 +3,7 @@
% title $self->l('Administration').' · Dolomon';
<h1><%= l('Administration') %></h1>
<p><a href="<%= url_for('/admin/minion') %>"><%= l('See job queue') %></a></p>
<form class="form-inline">
<div class="form-group">
<label class="sr-only" for="search-user"></label>
......
Supports Markdown
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