aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/time_tables_controller.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/time_tables_controller.rb')
-rw-r--r--app/controllers/time_tables_controller.rb16
1 files changed, 12 insertions, 4 deletions
diff --git a/app/controllers/time_tables_controller.rb b/app/controllers/time_tables_controller.rb
index 14cc7aa10..a18603ed9 100644
--- a/app/controllers/time_tables_controller.rb
+++ b/app/controllers/time_tables_controller.rb
@@ -8,19 +8,27 @@ class TimeTablesController < ChouetteController
belongs_to :referential
def show
+ add_breadcrumb Referential.human_attribute_name("time_tables"), referential_time_tables_path(@referential)
+
@year = params[:year] ? params[:year].to_i : Date.today.cwyear
@time_table_combination = TimeTableCombination.new
show!
end
- def new
+ def new
+ add_breadcrumb Referential.human_attribute_name("time_tables"), referential_time_tables_path(@referential)
+
@autocomplete_items = ActsAsTaggableOn::Tag.all
new!
end
- def edit
- @autocomplete_items = ActsAsTaggableOn::Tag.all
- edit!
+ def edit
+ edit! do
+ add_breadcrumb Referential.human_attribute_name("time_tables"), referential_time_tables_path(@referential)
+ add_breadcrumb @time_table.comment, referential_time_table_path(@referential, @time_table)
+
+ @autocomplete_items = ActsAsTaggableOn::Tag.all
+ end
end
def comment_filter