Sha256: 7ccd676b2095ee035ad946ce12f3ce7c0f2200b2d6a17614534f2b4a01792c34

Contents?: true

Size: 566 Bytes

Versions: 4

Compression:

Stored size: 566 Bytes

Contents

.well
  - if not ['new'].include? params[:action]
    = link_to "#{t('admix.crud.new.link')} " + t("#{@collection_name}.#{@collection_name.singularize}"), new_resource_url, class: 'btn'
  = link_to t('admix.crud.list.title', resources: t("#{@collection_name}.#{@collection_name}")), collection_url, class: 'btn'
  - if not ['index', 'edit'].include? params[:action]
    - if not resource.nil? and not resource.new_record?
      = link_edit(resource, t('admix.crud.edit.link'), 'btn-primary')
      = link_destroy(resource, t('admix.crud.destroy.link'), 'btn-danger')

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mix-rails-0.26.3 admix/app/views/admix/inherited/_actions.haml
admix-0.26.3 app/views/admix/inherited/_actions.haml
mix-rails-0.26.2 admix/app/views/admix/inherited/_actions.haml
admix-0.26.2 app/views/admix/inherited/_actions.haml