aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/controllers/calendars_controller.rb4
-rw-r--r--app/views/calendars/edit.html.slim1
-rw-r--r--app/views/calendars/index.html.slim2
-rw-r--r--app/views/calendars/new.html.slim1
-rw-r--r--app/views/calendars/show.html.slim1
5 files changed, 4 insertions, 5 deletions
diff --git a/app/controllers/calendars_controller.rb b/app/controllers/calendars_controller.rb
index 1c342c718..66eb3f963 100644
--- a/app/controllers/calendars_controller.rb
+++ b/app/controllers/calendars_controller.rb
@@ -8,16 +8,12 @@ class CalendarsController < BreadcrumbController
def index
index! do
@calendars = ModelDecorator.decorate(@calendars, with: CalendarDecorator)
-
- build_breadcrumb :index
end
end
def show
show! do
@calendar = @calendar.decorate
-
- build_breadcrumb :show
end
end
diff --git a/app/views/calendars/edit.html.slim b/app/views/calendars/edit.html.slim
index 426f27881..3463bd05c 100644
--- a/app/views/calendars/edit.html.slim
+++ b/app/views/calendars/edit.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :calendar, @calendar
/ PageHeader
= pageheader 'modele-calendrier',
t('.title', calendar: @calendar.name),
diff --git a/app/views/calendars/index.html.slim b/app/views/calendars/index.html.slim
index d3168fa3d..a95d54428 100644
--- a/app/views/calendars/index.html.slim
+++ b/app/views/calendars/index.html.slim
@@ -1,5 +1,5 @@
+- breadcrumb :calendars
/ PageHeader
-
- header_params = ['modele-calendrier',
t('.title'),
'']
diff --git a/app/views/calendars/new.html.slim b/app/views/calendars/new.html.slim
index 2cb6f8061..146173d35 100644
--- a/app/views/calendars/new.html.slim
+++ b/app/views/calendars/new.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :calendars
/ PageHeader
= pageheader 'modele-calendrier',
t('.title'),
diff --git a/app/views/calendars/show.html.slim b/app/views/calendars/show.html.slim
index eda4ef97c..b2ace0ccc 100644
--- a/app/views/calendars/show.html.slim
+++ b/app/views/calendars/show.html.slim
@@ -1,3 +1,4 @@
+- breadcrumb :calendar, @calendar
/ PageHeader
= pageheader 'modele-calendrier',
@calendar.name,