Sha256: f53abfba06a569ad3a928a02aeea86fccd8b9e03fe09883dbab978992052cf8a

Contents?: true

Size: 788 Bytes

Versions: 11

Compression:

Stored size: 788 Bytes

Contents

ruby:
  nested      ||= false
  title       ||= @klass_humanized.pluralize.titleize
  new_button    = !local_assigns[:new_button].eql?(false)
  new_path    ||= "new_#{fae_path}_#{@klass_singular}_path"
  button_text ||= "Add #{title.singularize}"
  csv         ||= false
  breadcrumb    = !local_assigns[:breadcrumbs].eql?(false)

header.content-header.js-content-header
  - if breadcrumb
    == render 'breadcrumb'
  - else
    h1 = title

  .content-header-buttons
    - if csv && @items.present?
      a.button href="#{@index_path}.csv" Export to CSV

    - if new_button
      - 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

== render 'flash_messages'

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
fae-railsz-2.1.0 app/views/fae/shared/_index_header.html.slim
fae-rails-2.0.0 app/views/fae/shared/_index_header.html.slim
fae-rails-1.7.1 app/views/fae/shared/_index_header.html.slim
fae-rails-1.7.0 app/views/fae/shared/_index_header.html.slim
fae-rails-1.6.0 app/views/fae/shared/_index_header.html.slim
fae-rails-1.5.1 app/views/fae/shared/_index_header.html.slim
fae-rails-1.5.0 app/views/fae/shared/_index_header.html.slim
fae-rails-1.4.1 app/views/fae/shared/_index_header.html.slim
fae-rails-1.4.0 app/views/fae/shared/_index_header.html.slim
fae-rails-1.3.1 app/views/fae/shared/_index_header.html.slim
fae-rails-1.3.0 app/views/fae/shared/_index_header.html.slim