Skip to content

Commit

Permalink
Rename charts_script to additional_scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
victormours committed Jan 17, 2025
1 parent 7cca048 commit 8048324
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/organisations/stats/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/ Include the charts pack in the <head> section
- content_for(:charts_script) { javascript_include_tag "charts", "data-turbolinks-track": "reload" }
- content_for(:additional_scripts) { javascript_include_tag "charts", "data-turbolinks-track": "reload" }

- content_for(:menu_item) { "menu-organisation-stats" }

Expand Down
2 changes: 1 addition & 1 deletion app/views/common/_head_agent.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
= javascript_include_tag "#{dsfr_path}/dsfr.module.min.js", "data-turbo-track": "reload", type: "module", defer: true
= javascript_include_tag "#{dsfr_path}/dsfr.nomodule.min.js", "data-turbo-track": "reload", nomodule: true, defer: true

= content_for(:charts_script)
= content_for(:additional_scripts)
2 changes: 1 addition & 1 deletion app/views/layouts/application_base.html.slim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ html lang="fr"
= javascript_include_tag "application", "data-turbolinks-track": "reload"
= javascript_include_tag "#{dsfr_path}/dsfr.module.min.js", "data-turbo-track": "reload", type: "module", defer: true
= javascript_include_tag "#{dsfr_path}/dsfr.nomodule.min.js", "data-turbo-track": "reload", nomodule: true, defer: true
= content_for(:charts_script)
= content_for(:additional_scripts)

body
= render "layouts/rdv_solidarites_instance_name"
Expand Down
2 changes: 1 addition & 1 deletion app/views/stats/index.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/ Include the charts pack in the <head> section
- content_for(:charts_script) { javascript_include_tag "charts", "data-turbolinks-track": "reload" }
- content_for(:additional_scripts) { javascript_include_tag "charts", "data-turbolinks-track": "reload" }

- content_for :title do
| Statistiques
Expand Down
2 changes: 1 addition & 1 deletion app/views/stats/notifications_index.html.slim
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/ Include the charts pack in the <head> section
- content_for(:charts_script) { javascript_include_tag "charts", "data-turbolinks-track": "reload" }
- content_for(:additional_scripts) { javascript_include_tag "charts", "data-turbolinks-track": "reload" }

- content_for :title do
| Statistiques de notifications
Expand Down

0 comments on commit 8048324

Please sign in to comment.