From 5b0d0dfb9c4ae6c45a34fcbee224f1483ff4401b Mon Sep 17 00:00:00 2001 From: Xinhui Date: Fri, 20 Oct 2017 11:14:03 +0200 Subject: Breadcrumb for group_of_lines --- app/views/group_of_lines/edit.html.slim | 3 ++- app/views/group_of_lines/index.html.slim | 1 + app/views/group_of_lines/new.html.slim | 3 ++- app/views/group_of_lines/show.html.slim | 2 ++ 4 files changed, 7 insertions(+), 2 deletions(-) (limited to 'app/views') diff --git a/app/views/group_of_lines/edit.html.slim b/app/views/group_of_lines/edit.html.slim index 75d530b08..ef7a405d3 100644 --- a/app/views/group_of_lines/edit.html.slim +++ b/app/views/group_of_lines/edit.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :group_of_line, @group_of_line = title_tag t('group_of_lines.edit.title', :group_of_line => @group_of_line.name) -= render 'form' \ No newline at end of file += render 'form' diff --git a/app/views/group_of_lines/index.html.slim b/app/views/group_of_lines/index.html.slim index 69b1cd0d6..28f3ab264 100644 --- a/app/views/group_of_lines/index.html.slim +++ b/app/views/group_of_lines/index.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :group_of_lines, @line_referential = title_tag t('group_of_lines.index.title') = search_form_for @q, :url => line_referential_group_of_lines_path(@line_referential), remote: true, :html => {:method => :get, class: "form-inline", :id => "search", role: "form"} do |f| diff --git a/app/views/group_of_lines/new.html.slim b/app/views/group_of_lines/new.html.slim index 36b5d6b4e..395c2b3e7 100644 --- a/app/views/group_of_lines/new.html.slim +++ b/app/views/group_of_lines/new.html.slim @@ -1,3 +1,4 @@ +- breadcrumb :group_of_lines, @line_referential = title_tag t('group_of_lines.new.title') -== render 'form' \ No newline at end of file +== render 'form' diff --git a/app/views/group_of_lines/show.html.slim b/app/views/group_of_lines/show.html.slim index b934cb1ef..de215bfa0 100644 --- a/app/views/group_of_lines/show.html.slim +++ b/app/views/group_of_lines/show.html.slim @@ -1,3 +1,5 @@ +- breadcrumb :group_of_line, @group_of_line + = title_tag t('group_of_lines.show.title', :group_of_line => @group_of_line.name ) .group_of_line_show -- cgit v1.2.3