Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fiat Tux
Hat softwares
Dolomon
Commits
66f2af9b
Commit
66f2af9b
authored
Jan 15, 2018
by
Luc Didry
Browse files
Add Minion dashboard
parent
4c936675
Changes
4
Hide whitespace changes
Inline
Side-by-side
lib/Dolomon.pm
View file @
66f2af9b
...
...
@@ -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
'
=>
{
...
...
themes/default/lib/Dolomon/I18N/en.po
View file @
66f2af9b
...
...
@@ -202,7 +202,7 @@ msgstr ""
msgid "Children"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:1
7
#: themes/default/templates/misc/admin.html.ep:1
8
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:17
6
lib/Dolomon/Controller/Users.pm:614
#: lib/Dolomon.pm:17
8
lib/Dolomon/Controller/Users.pm:614
msgid "Default"
msgstr ""
...
...
@@ -317,7 +317,7 @@ msgstr ""
msgid "Dolos"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:4
1
#: themes/default/templates/misc/admin.html.ep:4
2
msgid "Dolos number"
msgstr ""
...
...
@@ -325,7 +325,7 @@ msgstr ""
msgid "Download datas in CSV format"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:3
8
#: themes/default/templates/misc/admin.html.ep:3
9
msgid "Email"
msgstr ""
...
...
@@ -353,7 +353,7 @@ msgstr ""
msgid "Expired?"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:3
6
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:3
7
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:4
0
#: themes/default/templates/misc/admin.html.ep:4
1
msgid "Last login"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:3
7
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:3
8
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:2
6
#: themes/default/templates/misc/admin.html.ep:2
7
msgid "Loading…"
msgstr ""
#: themes/default/templates/misc/admin.html.ep:3
5
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:3
6
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:1
3
#: themes/default/templates/misc/admin.html.ep:1
4
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:44
1
#: lib/Dolomon.pm:44
3
msgid "You are not authenticated or have not valid application credentials"
msgstr ""
...
...
themes/default/lib/Dolomon/I18N/fr.po
View file @
66f2af9b
...
...
@@ -202,7 +202,7 @@ msgstr "Changer le mot de passe"
msgid "Children"
msgstr "Enfants"
#: themes/default/templates/misc/admin.html.ep:1
7
#: themes/default/templates/misc/admin.html.ep:1
8
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:17
6
lib/Dolomon/Controller/Users.pm:614
#: lib/Dolomon.pm:17
8
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:4
1
#: themes/default/templates/misc/admin.html.ep:4
2
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:3
8
#: themes/default/templates/misc/admin.html.ep:3
9
msgid "Email"
msgstr "Courriel"
...
...
@@ -353,7 +353,7 @@ msgstr "Expiré"
msgid "Expired?"
msgstr "Expiré ?"
#: themes/default/templates/misc/admin.html.ep:3
6
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:3
7
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:4
0
#: themes/default/templates/misc/admin.html.ep:4
1
msgid "Last login"
msgstr "Dernière connexion"
#: themes/default/templates/misc/admin.html.ep:3
7
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:3
8
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:2
6
#: themes/default/templates/misc/admin.html.ep:2
7
msgid "Loading…"
msgstr "Chargement…"
#: themes/default/templates/misc/admin.html.ep:3
5
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:3
6
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:1
3
#: themes/default/templates/misc/admin.html.ep:1
4
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:44
1
#: lib/Dolomon.pm:44
3
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"
...
...
themes/default/templates/misc/admin.html.ep
View file @
66f2af9b
...
...
@@ -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>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment