diff --git a/src/EventSubscriber/SettingEventSubscriber.php b/src/EventSubscriber/SettingEventSubscriber.php index 164585d..d87e7f1 100644 --- a/src/EventSubscriber/SettingEventSubscriber.php +++ b/src/EventSubscriber/SettingEventSubscriber.php @@ -37,6 +37,7 @@ class SettingEventSubscriber extends EventSubscriber $this->manager->init('stats_umami_url', '📊 Statistiques', 'Adresse tableau de bord Umami', ''); $this->manager->init('stats_umami_tag', '📊 Statistiques', 'Script Umami', ''); + $this->manager->init('stats_grafana_url', '📊 Statistiques', 'Adresse tableau de bord Grafana', ''); $this->manager->init('post_author_description', '🖊️ Article', 'Description auteur', ''); @@ -69,7 +70,7 @@ class SettingEventSubscriber extends EventSubscriber ); } - if (in_array($entity->getCode(), ['giphy_api_key', 'stats_umami_url'])) { + if (in_array($entity->getCode(), ['giphy_api_key', 'stats_umami_url', 'stats_grafana_url'])) { $builder->add( 'value', TextType::class, diff --git a/templates/admin/dashboard.html.twig b/templates/admin/dashboard.html.twig index 5453f51..ebe1f0b 100644 --- a/templates/admin/dashboard.html.twig +++ b/templates/admin/dashboard.html.twig @@ -40,7 +40,36 @@ {% endfor %} - + +
+ + +
+
+ +
+
+ +
+
+
{% endblock %}