Skip to content

Commit

Permalink
Gestion des index de catalogue (numerique-gouv#244)
Browse files Browse the repository at this point in the history
* First version

* Update dependencies

* Finish dev of the new page type

* Explicit mention of the python version because the buildpack is temporarily broken

* try fix for error 500

* Fully static error 500 page

* static 404

* Fix static error pages

* Fix hook

* Fix templates

* Remove debugging changes

* Moved faker to prod dependencies (used by a command)

* Fix poetry.lock

* Add tests
  • Loading branch information
Ash-Crow authored Dec 11, 2024
1 parent aab8db9 commit 44e660d
Show file tree
Hide file tree
Showing 16 changed files with 2,421 additions and 255 deletions.
Binary file modified blog/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
20 changes: 10 additions & 10 deletions blog/locale/fr/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-11-27 14:45+0100\n"
"PO-Revision-Date: 2024-11-27 14:47+0100\n"
"POT-Creation-Date: 2024-12-10 14:32+0100\n"
"PO-Revision-Date: 2024-12-10 14:33+0100\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: fr\n"
Expand Down Expand Up @@ -78,8 +78,8 @@ msgstr "Il est impossible d’avoir des parents circulaires."
msgid "Category"
msgstr "Catégorie"

#: blog/models.py:167 blog/models.py:279 blog/models.py:460 blog/models.py:467
#: blog/models.py:518
#: blog/models.py:167 blog/models.py:279 blog/models.py:461 blog/models.py:468
#: blog/models.py:519
msgid "Categories"
msgstr "Catégories"

Expand Down Expand Up @@ -119,7 +119,7 @@ msgstr "Afficher les filtres"
msgid "Blog index"
msgstr "Index de blog"

#: blog/models.py:262 blog/models.py:483 blog/models.py:497
#: blog/models.py:262 blog/models.py:484 blog/models.py:498
#: blog/templates/blog/tags_list_page.html:20
msgid "Tags"
msgstr "Étiquettes"
Expand All @@ -143,23 +143,23 @@ msgstr "Articles écrits par"
msgid "Posts published in %(year)s"
msgstr "Articles publiés en %(year)s"

#: blog/models.py:520
#: blog/models.py:521
msgid "Post date"
msgstr "Date de publication"

#: blog/models.py:522
#: blog/models.py:523
msgid "Author entries can be created in Snippets > Persons"
msgstr "Les auteurs peuvent être créés via Fragments > Personnes"

#: blog/models.py:541
#: blog/models.py:542
msgid "Scheduled publishing"
msgstr "Publication planifiée"

#: blog/models.py:549
#: blog/models.py:550
msgid "Tags and Categories"
msgstr "Étiquettes et Catégories"

#: blog/models.py:565
#: blog/models.py:566
msgid "Blog page"
msgstr "Page de blog"

Expand Down
1 change: 1 addition & 0 deletions blog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,7 @@ def list_tags(self, min_count: int = 1) -> list:
.order_by("-tag_count")
)

@property
def show_filters(self) -> bool | BooleanField:
return self.filter_by_category or self.filter_by_tag or self.filter_by_author or self.filter_by_source

Expand Down
Binary file modified content_manager/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit 44e660d

Please sign in to comment.