update dashboard including grafana
This commit is contained in:
parent
869974c49b
commit
c93754ecff
|
@ -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,
|
||||
|
|
|
@ -40,7 +40,36 @@
|
|||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
<iframe src="{{ setting('stats_umami_url') }}" class="col-12 col-md-9" frameborder="0" style="height: calc(100vh - 170px)">
|
||||
</iframe>
|
||||
|
||||
<div class="col-12 col-md-9">
|
||||
<ul class="nav nav-pills" role="tablist">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link active" data-toggle="tab" href="#tab-stats-umami">
|
||||
{{ 'Umami'|trans }}
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" data-toggle="tab" href="#tab-stats-grafana">
|
||||
{{ 'Grafana'|trans }}
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="tab-content pt-4">
|
||||
<div class="tab-pane show active" id="tab-stats-umami">
|
||||
<iframe
|
||||
src="{{ setting('stats_umami_url') }}"
|
||||
frameborder="0"
|
||||
style="width: 100%; height: calc(100vh - 220px)"
|
||||
></iframe>
|
||||
</div>
|
||||
<div class="tab-pane" id="tab-stats-grafana">
|
||||
<iframe
|
||||
src="{{ setting('stats_grafana_url') }}"
|
||||
frameborder="0" style="width: 100%; height: calc(100vh - 220px)"
|
||||
></iframe>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue