Skip to content

Commit 87ba84c

Browse files
committed
remerge develop
2 parents 3a21b01 + c1b1149 commit 87ba84c

File tree

69 files changed

+1143
-842
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1143
-842
lines changed

.gitignore

Lines changed: 8 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,17 @@
33
atlas/configuration/config.py
44
atlas/configuration/settings.ini
55

6-
# Atlas custom files
7-
atlas/static/custom/custom.css
8-
atlas/static/custom/glossaire.json
9-
atlas/static/custom/maps-custom.js
10-
atlas/static/custom/territoire.json
116

12-
atlas/static/custom/images/accueil-intro.jpg
13-
atlas/static/custom/images/external-website.png
14-
atlas/static/custom/images/favicon.ico
15-
atlas/static/custom/images/logo_*
16-
atlas/static/custom/images/logo-*
17-
atlas/static/custom/images/picto*.png
18-
19-
atlas/static/custom/templates/bandeaulogoshome.html
20-
atlas/static/custom/templates/credits.html
21-
atlas/static/custom/templates/footer.html
22-
atlas/static/custom/templates/introduction.html
23-
atlas/static/custom/templates/mentions-legales.html
24-
atlas/static/custom/templates/navbar.html
25-
atlas/static/custom/templates/presentation.html
26-
atlas/static/custom/templates/personal-data.html
27-
atlas/static/custom/templates/statuts.html
28-
atlas/static/custom/templates/presentation.html
29-
atlas/static/custom/templates/personal-data.html
7+
# Atlas static files
8+
atlas/static/node_modules/
9+
atlas/static/custom/*
10+
!atlas/static/custom/images/
11+
!atlas/static/custom/templates/
12+
!atlas/static/custom/**/.gitignore
3013

3114
# Directories to ignore
3215
.idea/
33-
atlas/static/node_modules/
16+
geonature_atlas.egg-info/
3417
log/*
3518
venv/*
3619
venv3/*
@@ -46,6 +29,6 @@ venv3/*
4629
*.swo
4730
*.swp
4831
atlas/debug.py
49-
geonature_atlas.egg-info/
5032
Makefile.perso.mk
5133
robots.txt
34+
!atlas/static/sample/robots.txt

atlas/atlasRoutes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ def sitemap():
435435

436436
@main.route("/robots.txt", methods=["GET"])
437437
def robots():
438-
robots_template = render_template("static/custom/templates/robots.txt")
438+
robots_template = render_template("static/custom/robots.txt")
439439
response = make_response(robots_template)
440440
response.headers["Content-type"] = "text/plain"
441441

atlas/babel.cfg

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
[python: **.py]
22
[jinja2: **/templates/**/**.html]
3-
[jinja2: **/static/custom/templates/**.sample]

atlas/configuration/config.py.example

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,8 @@ LANGUAGES = {
101101
#####################
102102
#####################
103103

104-
# Utiliser et afficher le glossaire (static/custom/glossaire.json.sample)
104+
# Utiliser et afficher le glossaire (static/custom/glossaire.json)
105+
# Le fichier par défaut est présente dans static/sample/glossaire.json.
105106
GLOSSAIRE = False
106107

107108
###########################

atlas/messages.pot

Lines changed: 76 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ msgid ""
88
msgstr ""
99
"Project-Id-Version: PROJECT VERSION\n"
1010
"Report-Msgid-Bugs-To: EMAIL@ADDRESS\n"
11-
"POT-Creation-Date: 2025-10-21 11:50+0200\n"
11+
"POT-Creation-Date: 2025-10-20 15:27+0200\n"
1212
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
1313
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
1414
"Language-Team: LANGUAGE <[email protected]>\n"
@@ -42,108 +42,110 @@ msgid "search.area"
4242
msgstr ""
4343

4444
#: static/custom/templates/bandeaulogoshome.html:6
45-
#: static/custom/templates/bandeaulogoshome.html.sample:7
45+
#: static/sample/templates/bandeaulogoshome.html:7
4646
msgid "home.partners"
4747
msgstr ""
4848

49-
#: static/custom/templates/footer.html:2
50-
#: static/custom/templates/footer.html.sample:2 templates/home/_main.html:3
49+
#: static/custom/templates/footer.html:2 static/sample/templates/footer.html:2
50+
#: templates/home/_main.html:3
5151
msgid "home"
5252
msgstr ""
5353

5454
#: static/custom/templates/footer.html:5 static/custom/templates/footer.html:30
55-
#: static/custom/templates/footer.html.sample:4
56-
#: static/custom/templates/footer.html.sample:26
55+
#: static/sample/templates/footer.html:4 static/sample/templates/footer.html:26
5756
msgid "credits"
5857
msgstr ""
5958

6059
#: static/custom/templates/footer.html:7 static/custom/templates/footer.html:47
61-
#: static/custom/templates/footer.html.sample:5
62-
#: static/custom/templates/footer.html.sample:41
60+
#: static/sample/templates/footer.html:5 static/sample/templates/footer.html:41
6361
msgid "legal"
6462
msgstr ""
6563

6664
#: static/custom/templates/footer.html:11
67-
#: static/custom/templates/footer.html:65
68-
#: static/custom/templates/footer.html.sample:7
69-
#: static/custom/templates/footer.html.sample:57
65+
#: static/custom/templates/footer.html:65 static/sample/templates/footer.html:7
66+
#: static/sample/templates/footer.html:57
7067
msgid "personal_data"
7168
msgstr ""
7269

73-
#: static/custom/templates/footer.html:12
74-
#: static/custom/templates/footer.html.sample:8
70+
#: static/custom/templates/footer.html:12 static/sample/templates/footer.html:8
7571
msgid "preferences_cookies"
7672
msgstr ""
7773

7874
#: static/custom/templates/footer.html:18
79-
#: static/custom/templates/footer.html.sample:14
75+
#: static/sample/templates/footer.html:14
8076
msgid "atlas.fauna.flora"
8177
msgstr ""
8278

8379
#: static/custom/templates/footer.html:18
84-
#: static/custom/templates/footer.html.sample:14
85-
#: static/custom/templates/introduction.html.sample:7
80+
#: static/sample/templates/footer.html:14
81+
#: static/sample/templates/introduction.html:7
8682
msgid "from1"
8783
msgstr ""
8884

8985
#: static/custom/templates/footer.html:20
90-
#: static/custom/templates/footer.html.sample:16
86+
#: static/sample/templates/footer.html:16
9187
msgid "powered.by"
9288
msgstr ""
9389

9490
#: static/custom/templates/footer.html:20
95-
#: static/custom/templates/footer.html.sample:17
91+
#: static/sample/templates/footer.html:17
9692
msgid "developed.by"
9793
msgstr ""
9894

9995
#: static/custom/templates/footer.html:21
100-
#: static/custom/templates/footer.html.sample:17
96+
#: static/sample/templates/footer.html:17
10197
msgid "ecrins.national.park"
10298
msgstr ""
10399

104100
#: static/custom/templates/introduction.html:6
105-
#: static/custom/templates/introduction.html.sample:6
101+
#: static/sample/templates/introduction.html:6
106102
msgid "welcome.message"
107103
msgstr ""
108104

109105
#: static/custom/templates/introduction.html:10
110-
#: static/custom/templates/introduction.html.sample:10
106+
#: static/sample/templates/introduction.html:10
111107
msgid "home.introduction.message"
112108
msgstr ""
113109

114-
#: static/custom/templates/introduction.html.sample:7
115-
msgid "from2"
110+
#: static/custom/templates/navbar.html:37
111+
#: static/sample/templates/navbar.html:37 templates/home/globalStats.html:36
112+
#: templates/photoGalery/_main.html:73
113+
msgid "search.species"
116114
msgstr ""
117115

118-
#: static/custom/templates/introduction.html.sample:7
119-
msgid "from3"
116+
#: static/custom/templates/presentation.html:4
117+
#: static/sample/templates/presentation.html:4
118+
msgid "atlas.presentation"
120119
msgstr ""
121120

122-
#: static/custom/templates/introduction.html.sample:7
123-
msgid "from4"
121+
#: templates/areaSheet/_main.html:29 templates/speciesSheet/_main.html:53
122+
msgid "obs.number.s"
124123
msgstr ""
125124

126-
#: static/custom/templates/introduction.html.sample:7
127-
msgid "from5"
125+
#: templates/areaSheet/_main.html:30 templates/areaSheet/statArea.html:8
126+
#: templates/core/statHierarchy.html:7 templates/core/taxon.html:69
127+
#: static/sample/templates/introduction.html:7
128+
msgid "from2"
128129
msgstr ""
129130

130-
#: static/custom/templates/navbar.html:37
131-
#: static/custom/templates/navbar.html.sample:37
132-
#: templates/home/globalStats.html:36 templates/photoGalery/_main.html:73
133-
msgid "search.species"
131+
#: static/sample/templates/introduction.html:7
132+
msgid "from3"
134133
msgstr ""
135134

136-
#: static/custom/templates/presentation.html:4
137-
#: static/custom/templates/presentation.html.sample:4
138-
msgid "atlas.presentation"
135+
#: static/sample/templates/introduction.html:7
136+
msgid "from4"
139137
msgstr ""
140138

141-
#: templates/areaSheet/_main.html:29 templates/speciesSheet/_main.html:53
139+
#: static/sample/templates/introduction.html:7
140+
msgid "from5"
141+
msgstr ""
142+
143+
#: templates/areaSheet/_main.html:32 templates/speciesSheet/_main.html:53
142144
msgid "obs.number.s"
143145
msgstr ""
144146

145-
#: templates/areaSheet/_main.html:30 templates/areaSheet/statArea.html:8
146-
#: templates/core/statHierarchy.html:7 templates/core/taxon.html:69
147+
#: templates/areaSheet/_main.html:33 templates/areaSheet/statArea.html:8
148+
#: templates/core/statHierarchy.html:7 templates/core/taxon.html:85
147149
#: templates/home/globalStats.html:16 templates/home/taxoRank.html:49
148150
#: templates/organismSheet/statsInfos.html:15
149151
#: templates/organismSheet/topSpecies.html:44
@@ -166,13 +168,13 @@ msgstr ""
166168
#: templates/home/globalStats.html:28 templates/home/taxoRank.html:32
167169
#: templates/organismSheet/statsInfos.html:29
168170
msgid "species"
169-
msgstr ""
171+
msgstr "Espèces"
170172

171173
#: templates/areaSheet/_main.html:34 templates/areaSheet/moreZoneInfo.html:17
172174
#: templates/areaSheet/moreZoneInfo.html:67
173175
#: templates/areaSheet/statArea.html:56
174176
msgid "threatened.species"
175-
msgstr ""
177+
msgstr "Menacés"
176178

177179
#: templates/areaSheet/_main.html:35
178180
msgid "other.species"
@@ -248,7 +250,7 @@ msgid "by.taxonomic.group"
248250
msgstr ""
249251

250252
#: templates/areaSheet/statArea.html:8 templates/core/statHierarchy.html:7
251-
#: templates/core/taxon.html:69 templates/organismSheet/topSpecies.html:42
253+
#: templates/core/taxon.html:85 templates/organismSheet/topSpecies.html:42
252254
#: templates/speciesSheet/map.html:15
253255
#: templates/speciesSheet/otherInformations.html:145
254256
msgid "observation"
@@ -325,14 +327,14 @@ msgstr ""
325327
msgid "asearch.remove.selection"
326328
msgstr ""
327329

328-
#: templates/core/advanced_search.html:406 templates/core/taxon.html:79
330+
#: templates/core/advanced_search.html:406 templates/core/taxon.html:95
329331
#: templates/home/lastObs.html:32 templates/home/mostViewNow.html:33
330332
#: templates/home/newSpecies.html:48 templates/home/taxoRank.html:61
331333
#: templates/organismSheet/topSpecies.html:76
332334
msgid "species.sheet"
333335
msgstr ""
334336

335-
#: templates/core/advanced_search.html:407 templates/core/taxon.html:77
337+
#: templates/core/advanced_search.html:407 templates/core/taxon.html:93
336338
#: templates/organismSheet/topSpecies.html:75
337339
#: templates/speciesSheet/identityCard.html:171
338340
msgid "check.species.sheet"
@@ -443,11 +445,39 @@ msgstr ""
443445
msgid "this.taxon.has.a.protected.status"
444446
msgstr ""
445447

446-
#: templates/core/taxon.html:46
448+
#: templates/core/taxon.html:46 templates/core/taxon.html:47
449+
msgid "threatened.CR"
450+
msgstr "Critique"
451+
452+
#: templates/core/taxon.html:48
453+
msgid "threatened.EN"
454+
msgstr "En danger"
455+
456+
#: templates/core/taxon.html:49
457+
msgid "threatened.VU"
458+
msgstr "Vulnérable"
459+
460+
#: templates/core/taxon.html:54
461+
msgid "protected.LRR"
462+
msgstr "Liste rouge régionale"
463+
464+
#: templates/core/taxon.html:55
465+
msgid "protected.LRN"
466+
msgstr "Liste rouge nationale"
467+
468+
#: templates/core/taxon.html:56
469+
msgid "protected.LRE"
470+
msgstr "Liste rouge européenne"
471+
472+
#: templates/core/taxon.html:57
473+
msgid "protected.LRM"
474+
msgstr "Liste rouge mondilae"
475+
476+
#: templates/core/taxon.html:62
447477
msgid "threatened"
448478
msgstr ""
449479

450-
#: templates/core/taxon.html:72
480+
#: templates/core/taxon.html:88
451481
msgid "last.obs.in"
452482
msgstr ""
453483

atlas/modeles/entities/vmAltitudes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from itertools import pairwise
22
from flask import current_app
3-
from sqlalchemy.orm import Mapped, mapped_column
3+
from sqlalchemy.orm import mapped_column
44
from sqlalchemy import Integer
55
from atlas.env import db
66

atlas/modeles/entities/vmAreas.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@ class VmAreas(db.Model):
3232
type: Mapped["VmBibAreasTypes"] = relationship("VmBibAreasTypes", back_populates="areas")
3333

3434

35-
class VmCorAreaObservation(db.Model):
36-
__tablename__ = "vm_cor_area_observation"
37-
__table_args__ = {"schema": "atlas"}
38-
39-
id_observation: Mapped[int] = mapped_column(primary_key=True)
40-
id_area: Mapped[int] = mapped_column(primary_key=True)
41-
42-
4335
class VmCorAreas(db.Model):
4436
__tablename__ = "vm_cor_areas"
4537
__table_args__ = {"schema": "atlas"}

atlas/static/css/areaSheet.css

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ img.statut_icon {
7575

7676
.specie_list_map_block {
7777
display: flex;
78-
height: 100%;
7978
}
8079

8180
.stats_block {
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ignore everything in this directory
2+
*
3+
# Except this file
4+
!.gitignore
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Ignore everything in this directory
2+
*
3+
# Except this file
4+
!.gitignore

0 commit comments

Comments
 (0)