Sha256: 35d255867324d9652bbaa9cff1c6be5c5c6330b4523fb857b288d12567393e38

Contents?: true

Size: 484 Bytes

Versions: 5

Compression:

Stored size: 484 Bytes

Contents

= breadcrumb do |items|
  - items << link_to(Settings.app_name, controller_namespaces + [:root])
  - if parent?
    -items << link_to(parent_resource_name.pluralize, parent_collection_url)
    -items << link_to(parent.to_s, parent_url)
  - if resource?
    -items << link_to(resource_name.pluralize, collection_url)
    -items << (resource.new_record? ? "New" : resource.to_s)
  - elsif collection?
    -items << resource_name.pluralize
  - else
    -items << controller_name.humanize

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
app_frame-0.6.1 app/views/application/_breadcrumb.html.haml
app_frame-0.5.8 app/views/application/_breadcrumb.html.haml
app_frame-0.5.7 app/views/application/_breadcrumb.html.haml
app_frame-0.5.6 app/views/application/_breadcrumb.html.haml
app_frame-0.5.5 app/views/application/_breadcrumb.html.haml