diff options
| author | Vlatka Pavisic | 2016-12-29 17:20:06 +0100 | 
|---|---|---|
| committer | Vlatka Pavisic | 2016-12-29 17:20:06 +0100 | 
| commit | adfb4aebfab39b5a7a4b9a70ac62f639567aead6 (patch) | |
| tree | 3ef864b0f48e946d04d1c79947a2e8efe1f96853 /app/helpers/breadcrumb_helper.rb | |
| parent | 08b68565fb7f82bc7754bd62ad3f72efca6ea62d (diff) | |
| download | chouette-core-adfb4aebfab39b5a7a4b9a70ac62f639567aead6.tar.bz2 | |
Refs #2262 Refs #2263 Refs #2264 Refs #2265 : Calendars
Diffstat (limited to 'app/helpers/breadcrumb_helper.rb')
| -rw-r--r-- | app/helpers/breadcrumb_helper.rb | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/app/helpers/breadcrumb_helper.rb b/app/helpers/breadcrumb_helper.rb index dc68bd897..d764ad60f 100644 --- a/app/helpers/breadcrumb_helper.rb +++ b/app/helpers/breadcrumb_helper.rb @@ -38,6 +38,8 @@ module BreadcrumbHelper        timeband_breadcrumb action      when 'Chouette::RoutingConstraintZone'        routing_constraint_zone_breadcrumb action +    when 'Calendar' +      calendar_breadcrumb action      when "StopAreaCopy"        stop_area_copy_breadcrumb action      when "Import" @@ -70,6 +72,11 @@ module BreadcrumbHelper      end    end +  def calendar_breadcrumb(action) +    add_breadcrumb Calendar.model_name.human.pluralize +    add_breadcrumb @calendar.name if %i(show edit).include? action +  end +    def workbench_breadcrumb(action)      add_breadcrumb I18n.t("breadcrumbs.referentials"), referentials_path      add_breadcrumb breadcrumb_label(@workbench), workbench_path(@workbench), :title => breadcrumb_tooltip(@workbench) | 
