Sha256: 6c9bcabe946fb391a8584286dacf6dc073a5041609c0c5fe8b9ce163da29f31d

Contents?: true

Size: 365 Bytes

Versions: 5

Compression:

Stored size: 365 Bytes

Contents

- view   ||= controller.controller_name
- action ||= controller.action_name
- sidebar = "#{view}/sidebar_#{action}" unless action.to_s == 'show'
- sidebar = "admin/#{sidebar}" if controller.class.to_s.starts_with?("Admin::")

= content_for :sidebar
- begin
  = render sidebar if sidebar
  - rescue MissingTemplate

= render "lists/lists"
= render "shared/recently"

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/layouts/_sidebar.html.haml
fat_free_crm-0.22.0 app/views/layouts/_sidebar.html.haml
fat_free_crm-0.21.0 app/views/layouts/_sidebar.html.haml
fat_free_crm-0.20.1 app/views/layouts/_sidebar.html.haml
fat_free_crm-0.20.0 app/views/layouts/_sidebar.html.haml