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

feat(forum): mise en avant de la catégorie "boîte à outils CIP" dans le header #675

Conversation

vincentporte
Copy link
Contributor

Description

🎸 Quick'n'dirty highlight

Type de changement

🎢 Nouvelle fonctionnalité (changement non cassant qui ajoute une fonctionnalité).
🎨 changement d'UI

Points d'attention

🦺 ajout d'une variable d'environnement TOOLBOX_FORUM_ID

Captures d'écran (optionnel)

image

@vincentporte vincentporte linked an issue Jun 12, 2024 that may be closed by this pull request
@vincentporte vincentporte added the hot fix Pull requests that fix a bug to fix as soon as possible label Jun 12, 2024
config/settings/base.py Show resolved Hide resolved
Comment on lines +131 to +145
def test_toolbox_url(self):
ForumFactory() # dummy first public forum as exchange space
forum = ForumFactory()
with self.settings(TOOLBOX_FORUM_ID=forum.pk):
response = self.client.get("/")
self.assertEqual(response.context["TOOLBOX_FORUM_URL"], forum.get_absolute_url())
self.assertContains(response, forum.get_absolute_url())
with self.settings(TOOLBOX_FORUM_ID=None):
response = self.client.get("/")
self.assertIsNone(response.context["TOOLBOX_FORUM_URL"])
self.assertNotContains(response, forum.get_absolute_url())
with self.settings(TOOLBOX_FORUM_ID=forum.id + 1):
response = self.client.get("/")
self.assertIsNone(response.context["TOOLBOX_FORUM_URL"])
self.assertNotContains(response, forum.get_absolute_url())
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@vincentporte vincentporte marked this pull request as draft June 18, 2024 07:04
@vincentporte
Copy link
Contributor Author

voir s'il n'y a pas mieux à faire en préparation de la future home : espace éditorial ouvert

@vincentporte vincentporte deleted the 614-documentation-mettre-en-valeur-la-boite-à-outils branch January 6, 2025 14:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hot fix Pull requests that fix a bug to fix as soon as possible
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOCUMENTATION] mettre en valeur la boite à outils
2 participants