Sha256: 0b9f8450c601e4f889872ceedd6d1334636245622115c05cff41599b70b47574

Contents?: true

Size: 716 Bytes

Versions: 11

Compression:

Stored size: 716 Bytes

Contents

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

section.content-header
  h1
    | #{heading} #{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.singularize}_path")) ? :active : nil)
      a href="#{controller_name}_path"
        = controller_name.camelize
    - unless current_page?(eval("#{controller_name.singularize}_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/accounts/_navigation.html.slim
hicube-0.0.10 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.9 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.8 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.7 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.6 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.5 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.4 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.3 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.2 app/views/hicube/accounts/_navigation.html.slim
hicube-0.0.1 app/views/hicube/accounts/_navigation.html.slim