From 4116f3dd36e7219335fc5af7134d9f7fa02b908d Mon Sep 17 00:00:00 2001 From: gildeluermoz Date: Mon, 26 Aug 2024 15:47:41 +0200 Subject: [PATCH 1/3] Update config_schema.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ajout de 2 paramètres pour masquer ou pas les stats d'altitudes et de phénologie --- atlas/configuration/config_schema.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/atlas/configuration/config_schema.py b/atlas/configuration/config_schema.py index 068944a7a..dbdca924b 100644 --- a/atlas/configuration/config_schema.py +++ b/atlas/configuration/config_schema.py @@ -136,6 +136,8 @@ class Meta: AFFICHAGE_RANG_STAT = fields.Boolean(load_default=True) AFFICHAGE_NOUVELLES_ESPECES = fields.Boolean(load_default=True) AFFICHAGE_RECHERCHE_AVANCEE = fields.Boolean(load_default=False) + AFFICHAGE_GRAPH_ALTITUDES = fields.Boolean(load_default=True) + AFFICHAGE_GRAPH_PHENOLOGIE = fields.Boolean(load_default=True) RANG_STAT = fields.List( fields.Dict, From 97631ceaac6794b4341d6c2cfaf168223b91024b Mon Sep 17 00:00:00 2001 From: gildeluermoz Date: Mon, 26 Aug 2024 15:51:45 +0200 Subject: [PATCH 2/3] Update charts.html MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit utilisation de 2 paramètres pour masquer ou pas les stats d'altitudes et de phénologie --- atlas/templates/speciesSheet/charts.html | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/atlas/templates/speciesSheet/charts.html b/atlas/templates/speciesSheet/charts.html index c9753ae59..f12648a20 100644 --- a/atlas/templates/speciesSheet/charts.html +++ b/atlas/templates/speciesSheet/charts.html @@ -1,12 +1,16 @@ {% block charts %}
-

{{ _('alt.classes.obs') }}

-
- -
-

{{ _('monthly.obs') }}

-
- + {% if configuration.AFFICHAGE_GRAPH_ALTITUDES %} +

{{ _('alt.classes.obs') }}

+
+ + {% endif %}
+ {% if configuration.AFFICHAGE_GRAPH_PHENOLOGIE %} +

{{ _('monthly.obs') }}

+
+ +
+ {% endif %}
-{% endblock %} \ No newline at end of file +{% endblock %} From e514c8acef84b9a8ce036a0f6828af9440325f43 Mon Sep 17 00:00:00 2001 From: gildeluermoz Date: Mon, 26 Aug 2024 15:55:07 +0200 Subject: [PATCH 3/3] Update config.py.example MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Exemples pour l'usage des 2 paramètres pour afficher ou pas les stats d'altitudes et de phénologie --- atlas/configuration/config.py.example | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/atlas/configuration/config.py.example b/atlas/configuration/config.py.example index 88ca19108..90e55e361 100644 --- a/atlas/configuration/config.py.example +++ b/atlas/configuration/config.py.example @@ -184,6 +184,12 @@ RANG_STAT_FR = ['Faune invertébrée', 'Faune vertébrée', 'Flore'] ####### FICHE ESPECE ####### ############################ +# Afficher le graphique des altitudes. Affichage True/False +AFFICHAGE_GRAPH_ALTITUDES = True + +# Afficher le graphique de la phénologie. Affichage True/False +AFFICHAGE_GRAPH_PHENOLOGIE = True + # Rang taxonomique qui fixe jusqu'à quel taxon remonte la filiation taxonomique (hierarchie dans la fiche d'identite : Famille, Ordre etc... ) LIMIT_RANG_TAXONOMIQUE_HIERARCHIE = 13