aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/lines/show.html.slim
diff options
context:
space:
mode:
authorXinhui2017-11-23 14:14:04 +0100
committerXinhui2017-11-28 12:21:33 +0100
commit6820faf7849ff704c55cde29c8b2efc320ff63d7 (patch)
treefca06b0663ff2150349cafe6fd5839d3ea7115af /app/views/lines/show.html.slim
parent1e61b1792c4c0be9e55b6469610fca982d8a9e54 (diff)
downloadchouette-core-6820faf7849ff704c55cde29c8b2efc320ff63d7.tar.bz2
Replace pageheader by render partial
Diffstat (limited to 'app/views/lines/show.html.slim')
-rw-r--r--app/views/lines/show.html.slim11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/views/lines/show.html.slim b/app/views/lines/show.html.slim
index ccf237154..ae415121f 100644
--- a/app/views/lines/show.html.slim
+++ b/app/views/lines/show.html.slim
@@ -1,11 +1,5 @@
- breadcrumb :line, @line
-/ PageHeader
-= pageheader 'ligne',
- @line.name,
- 'Lorem ipsum dolor sit amet',
- t('last_update', time: l(@line.updated_at, format: :short)) do
-
- / Below is secundary actions & optional contents
+- content_for :page_header_content do
.row
.col-lg-12.text-right.mb-sm
- @line.action_links.each do |link|
@@ -15,7 +9,8 @@
class: 'btn btn-primary' do
= link.content
-/ PageContent
+= render partial: 'layouts/navigation/page_header', locals: {object: @line}
+
.page_content
.container-fluid
.row