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

[POC] ajout d'un lien vers la documentation de la communauté #5245

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions config/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -730,3 +730,7 @@
# Brevo
# ------------------------------------------------------------------------------
BREVO_API_KEY = os.getenv("BREVO_API_KEY")

# la communaute de l'inclusion
# ------------------------------------------------------------------------------
COMMU_BASE_URL = os.getenv("COMMU_BASE_URL", "https://communaute.inclusion.beta.gouv.fr")
6 changes: 6 additions & 0 deletions itou/utils/templatetags/nav.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ def __repr__(self):
target=reverse("search:prescribers_results"),
active_view_names=["search:prescribers_home", "search:prescribers_results"],
),
"documents-search": NavItem(
label="Une documentation",
Copy link
Collaborator

@celine-m-s celine-m-s Dec 11, 2024

Choose a reason for hiding this comment

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

Suggested change
label="Une documentation",
label="Une documentation (Communauté de l'inclusion)",

target=f"{settings.COMMU_BASE_URL}/documentation/?proconnect_login=true",
active_view_names=[],
),
# Job seekers.
"job-seeker-job-apps": NavItem(
label="Mes candidatures",
Expand Down Expand Up @@ -250,6 +255,7 @@ def nav(request):
items=[
NAV_ENTRIES["employers-search"],
NAV_ENTRIES["prescribers-search"],
NAV_ENTRIES["documents-search"],
],
)
)
Expand Down
30 changes: 30 additions & 0 deletions tests/www/__snapshots__/test_layout.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@
Un prescripteur habilité</a>
</li>

<li>
<a href="https://communaute.inclusion.beta.gouv.fr/documentation/?proconnect_login=true">
Une documentation</a>
</li>

</ul>
</div>
</li>
Expand Down Expand Up @@ -373,6 +378,11 @@
Un prescripteur habilité</a>
</li>

<li>
<a href="https://communaute.inclusion.beta.gouv.fr/documentation/?proconnect_login=true">
Une documentation</a>
</li>

</ul>
</div>
</li>
Expand Down Expand Up @@ -605,6 +615,11 @@
Un prescripteur habilité</a>
</li>

<li>
<a href="https://communaute.inclusion.beta.gouv.fr/documentation/?proconnect_login=true">
Une documentation</a>
</li>

</ul>
</div>
</li>
Expand Down Expand Up @@ -847,6 +862,11 @@
Un prescripteur habilité</a>
</li>

<li>
<a href="https://communaute.inclusion.beta.gouv.fr/documentation/?proconnect_login=true">
Une documentation</a>
</li>

</ul>
</div>
</li>
Expand Down Expand Up @@ -1099,6 +1119,11 @@
Un prescripteur habilité</a>
</li>

<li>
<a href="https://communaute.inclusion.beta.gouv.fr/documentation/?proconnect_login=true">
Une documentation</a>
</li>

</ul>
</div>
</li>
Expand Down Expand Up @@ -1326,6 +1351,11 @@
Un prescripteur habilité</a>
</li>

<li>
<a href="https://communaute.inclusion.beta.gouv.fr/documentation/?proconnect_login=true">
Une documentation</a>
</li>

</ul>
</div>
</li>
Expand Down
Loading