aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/time_tables/show.html.slim
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/time_tables/show.html.slim')
-rw-r--r--app/views/time_tables/show.html.slim16
1 files changed, 8 insertions, 8 deletions
diff --git a/app/views/time_tables/show.html.slim b/app/views/time_tables/show.html.slim
index 85de7f8ec..036581268 100644
--- a/app/views/time_tables/show.html.slim
+++ b/app/views/time_tables/show.html.slim
@@ -1,14 +1,14 @@
- require 'calendar_helper'
- breadcrumb :time_table, @referential, @time_table
-/ PageHeader
+- page_header_content_for @time_table
-= pageheader 'calendrier-application',
- @time_table.comment,
- '',
- t('last_update', time: l(@time_table.updated_at, format: :short)),
- (policy(@time_table).edit? ? link_to(t('actions.edit'), edit_referential_time_table_path(@referential, @time_table), class: 'btn btn-default') : '')
+- content_for :page_header_title, t('time_tables.show.title', name: @time_table.comment), flush: true
- / Below is secundary actions & optional contents (filters, ...)
+- 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')
+
+- content_for :page_header_content do
.row.mb-sm
.col-lg-12.text-right
- @time_table.action_links.each do |link|
@@ -18,7 +18,7 @@
class: 'btn btn-primary' do
= link.content
-/ PageContent
+
.page_content
.container-fluid
.row