Sha256: 86643d84bfdfa0309074e5298b67e66402103f10f249534d073a574f5f2cd88e

Contents?: true

Size: 727 Bytes

Versions: 4

Compression:

Stored size: 727 Bytes

Contents

- nested      ||= false
- title       ||= @klass_humanized.pluralize
- new_button    = !local_assigns[:new_button].eql?(false)
- new_path    ||= "new_#{fae_path}_#{@klass_singular}_path"
- button_text ||= "Add #{title.singularize}"
- csv         ||= false
section.main_content-header
  .main_content-header-wrapper
    h1 = title
    - if new_button
      .main_content-header-save
        - if nested
          a.add-button.js-add-link.js-index-add-link remote='true' href=self.send(new_path) = button_text
        - else
          a.add-button href=@new_path = button_text
    - if csv && @items.present?
      .main_content-header-csv
        a.csv-button href="#{@index_path}.csv" Export to CSV

== render 'flash_messages'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fae-rails-1.2.5 app/views/fae/shared/_index_header.html.slim
fae-rails-1.2.4 app/views/fae/shared/_index_header.html.slim
fae-rails-1.2.3 app/views/fae/shared/_index_header.html.slim
fae-rails-1.2.2 app/views/fae/shared/_index_header.html.slim