Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplifier le template tag nav en mode connecté #4720

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Conversation

francoisfreitag
Copy link
Contributor

@francoisfreitag francoisfreitag commented Sep 11, 2024

🤔 Pourquoi ?

Ce template tag n’est inclus qu’en mode connecté.

The `{% nav %}` template tag is only included when the user is
authenticated.
@francoisfreitag francoisfreitag added the no-changelog Ne doit pas figurer dans le journal des changements. label Sep 11, 2024
@francoisfreitag francoisfreitag self-assigned this Sep 11, 2024
Comment on lines +192 to +193
menu_items: list[NavItem | NavGroup] = [NAV_ENTRIES["home"]]
if request.user.is_job_seeker:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Le diff le montre mal, mais j’ai simplement retiré le if request.user.is_authenticated et déplacé le premier élement (NAV_ENTRIES["home"]) dans l’initialisation de la liste, au lieu de l’append immédiatement.

@francoisfreitag francoisfreitag added this pull request to the merge queue Sep 11, 2024
Merged via the queue into master with commit c053e1c Sep 11, 2024
12 checks passed
@francoisfreitag francoisfreitag deleted the ff/nav1 branch September 11, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no-changelog Ne doit pas figurer dans le journal des changements.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants