-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ajout d'une bannière pour annoncer NeTEx parkings (#4050)
* Banner for specific parking datasets * Add banner on dataset#index * Fix plural in French translation
- Loading branch information
1 parent
23a804b
commit f3272d5
Showing
10 changed files
with
83 additions
and
18 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
apps/transport/lib/transport_web/templates/dataset/_banner.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<p :if={parking_profile_warning?(@dataset)} class="notification mt-0 error"> | ||
<%= raw( | ||
dgettext( | ||
"page-dataset-details", | ||
~s(Due to the release of the French profile “Parkings” applicable to NeTEx, available on <a href="https://normes.transport.data.gouv.fr/normes/netex/parkings/" target="_blank">normes.transport.data.gouv.fr</a>, the national datasets related to car parks and park-and-ride will be deleted on September 1st 2024.) | ||
) | ||
) %> | ||
</p> | ||
<p :if={seasonal_warning?(@dataset)} class="notification mt-0"> | ||
ℹ️ <%= dgettext( | ||
"page-dataset-details", | ||
"This transport service operates seasonally. The associated resources may be outdated depending on the time of year. Contact the data producer through Discussions for more information." | ||
) %> | ||
</p> |
8 changes: 8 additions & 0 deletions
8
apps/transport/lib/transport_web/templates/dataset/_custom_message.html.heex
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters