Sha256: 76ffbf7f877f228888194c9fc5e8ed364f3018c35d711fb3ca00f06a7770716d

Contents?: true

Size: 750 Bytes

Versions: 11

Compression:

Stored size: 750 Bytes

Contents

- if current_page?(action: 'new')
  - heading = 'New'
  - subheading = 'Add'
- elsif current_page?(action: 'new')
  - heading = 'Edit'
  - subheading = 'Update'
- else
  - subheading = 'List'

section.content-header
  h1
    | #{heading} #{(current_page?(action: 'index') ? controller_name.camelize : controller_name.singularize.camelize)}
    small
      | #{subheading}
  ol.breadcrumb
    li
      a href=pages_path
        i.fa.fa-dashboard
        |  Home
    li class=(current_page?(eval("#{controller_name}_path")) ? :active : nil)
      a href="#{controller_name}_path"
        = controller_name.camelize
    - unless current_page?(eval("#{controller_name}_path"))
      li.active
        | #{heading} #{controller_name.singularize.camelize}

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hicube-0.0.11 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.10 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.9 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.8 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.7 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.6 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.5 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.4 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.3 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.2 app/views/hicube/documents/_navigation.html.slim
hicube-0.0.1 app/views/hicube/documents/_navigation.html.slim