diff options
| author | Xinhui | 2017-12-01 17:20:05 +0100 | 
|---|---|---|
| committer | Xinhui | 2017-12-01 17:20:05 +0100 | 
| commit | 3ae77ab3cdf27a740ffd7feb46b69455cd95bee8 (patch) | |
| tree | 38fd12f9af861f241e3b1f28731293d5eb3bf324 /app | |
| parent | 8a1a6f455c9cb3fac1de57daf8e544ee5baaae38 (diff) | |
| download | chouette-core-3ae77ab3cdf27a740ffd7feb46b69455cd95bee8.tar.bz2 | |
Fix override page header title call multiple time, using flush option
Diffstat (limited to 'app')
| -rw-r--r-- | app/views/journey_patterns_collections/show.html.slim | 2 | ||||
| -rw-r--r-- | app/views/time_tables/show.html.slim | 3 | 
2 files changed, 3 insertions, 2 deletions
| diff --git a/app/views/journey_patterns_collections/show.html.slim b/app/views/journey_patterns_collections/show.html.slim index 17a1f3770..834501da3 100644 --- a/app/views/journey_patterns_collections/show.html.slim +++ b/app/views/journey_patterns_collections/show.html.slim @@ -1,6 +1,6 @@  - breadcrumb :journey_patterns, @referential, @route  - page_header_content_for @route -- content_for :page_header_title, t('journey_patterns.index.title', route: @route.name) +- content_for :page_header_title, t('journey_patterns.index.title', route: @route.name), flush: true  - @journey_patterns.each do |jp|    - jp.errors.each do |error_message| diff --git a/app/views/time_tables/show.html.slim b/app/views/time_tables/show.html.slim index 670d3256b..036581268 100644 --- a/app/views/time_tables/show.html.slim +++ b/app/views/time_tables/show.html.slim @@ -2,7 +2,8 @@  - breadcrumb :time_table, @referential, @time_table  - page_header_content_for @time_table -- content_for :page_header_title, t('time_tables.show.title', name: @time_table.comment) +- content_for :page_header_title, t('time_tables.show.title', name: @time_table.comment), flush: true +  - content_for :page_header_actions do    - if policy(@time_table).edit?      = link_to(t('actions.edit'), edit_referential_time_table_path(@referential, @time_table), class: 'btn btn-default') | 
