-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
clairezed
committed
Sep 6, 2023
1 parent
054e2d3
commit fd3c111
Showing
16 changed files
with
120 additions
and
113 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,38 @@ | ||
%footer.fr-footer#footer{ role: "contentinfo" } | ||
.fr-container | ||
.fr-footer__body | ||
.fr-footer__brand.fr-enlarge-link | ||
= link_to root_path, title: "#{t('come_back_to_home')}" do | ||
%p.fr-logo | ||
= t('republique_francaise_html') | ||
.fr-footer__content | ||
%p.fr-footer__content-desc | ||
= t('.service_description') | ||
%ul.fr-footer__content-list | ||
%li.fr-footer__content-item | ||
= mail_to ENV['APPLICATION_EMAIL'], 'Contactez-nous', target: :_blank, class: 'fr-footer__content-link' | ||
%li.fr-footer__content-item | ||
= link_to t('pages.footer.service_presentation'), '/dossier-presse.pdf', 'aria-label': t('pages.footer.service_presentation_title'), target: '_blank', rel: 'noopener', class: 'fr-footer__content-link' | ||
%li.fr-footer__content-item | ||
= link_to t('usage_stats'), public_index_path, class: 'fr-footer__content-link' | ||
- if policy(Stats::All).team? | ||
- if user_signed_in? | ||
%footer.fr-footer#footer{ role: "contentinfo" } | ||
.fr-container | ||
.fr-footer__body | ||
.fr-footer__brand.fr-enlarge-link | ||
= link_to root_path, title: "#{t('come_back_to_home')}" do | ||
%p.fr-logo | ||
= t('republique_francaise_html') | ||
.fr-footer__content | ||
%p.fr-footer__content-desc | ||
= t('.service_description') | ||
%ul.fr-footer__content-list | ||
%li.fr-footer__content-item | ||
= link_to t('usage_team_stats'), team_index_path, class: 'fr-footer__content-link' | ||
.fr-footer__bottom | ||
%ul.fr-footer__bottom-list | ||
%li.fr-footer__bottom-item | ||
= link_to t('cgu'), cgu_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('about.mentions_d_information.title'), mentions_d_information_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('about.mentions_legales.title'), mentions_legales_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('conseiller.sitemap.sitemap.title'), conseiller_sitemap_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('about.accessibilite.footer_title'), accessibilite_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
%button.link.fr-footer__bottom-link{ id: 'open-cookies-box', 'aria-label': t('.open_cookies') } | ||
= t('.cookies') | ||
= mail_to ENV['APPLICATION_EMAIL'], 'Contactez-nous', target: :_blank, class: 'fr-footer__content-link' | ||
%li.fr-footer__content-item | ||
= link_to t('pages.footer.service_presentation'), '/dossier-presse.pdf', 'aria-label': t('pages.footer.service_presentation_title'), target: '_blank', rel: 'noopener', class: 'fr-footer__content-link' | ||
%li.fr-footer__content-item | ||
= link_to t('usage_stats'), public_index_path, class: 'fr-footer__content-link' | ||
- if policy(Stats::All).team? | ||
%li.fr-footer__content-item | ||
= link_to t('usage_team_stats'), team_index_path, class: 'fr-footer__content-link' | ||
.fr-footer__bottom | ||
%ul.fr-footer__bottom-list | ||
%li.fr-footer__bottom-item | ||
= link_to t('cgu'), cgu_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('about.mentions_d_information.title'), mentions_d_information_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('about.mentions_legales.title'), mentions_legales_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('conseiller.sitemap.sitemap.title'), conseiller_sitemap_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
= link_to t('about.accessibilite.footer_title'), accessibilite_path, class: 'fr-footer__bottom-link' | ||
%li.fr-footer__bottom-item | ||
%button.link.fr-footer__bottom-link{ id: 'open-cookies-box', 'aria-label': t('.open_cookies') } | ||
= t('.cookies') | ||
- else | ||
= render 'pages/footer' |
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
class String | ||
def sp_titleize_url | ||
self.titlecase.gsub(' ', '-').gsub('.Fr', '.fr') | ||
self.titlecase.tr(' ', '-').gsub('.Fr', '.fr') | ||
end | ||
end | ||
end |
Oops, something went wrong.