Sha256: 345d66ce9e9f57b8f1a209e0c55615f740e49decbc6e6192b15699b8e618c318

Contents?: true

Size: 977 Bytes

Versions: 42

Compression:

Stored size: 977 Bytes

Contents

- if component.exportable?
  - if component.exporters.length == 1
    - exporter = component.exporters.first

    = link_to component.path(namespace: :exports, exporter: exporter.name, q: params[:q].try(:permit!)), class: 'btn btn-default btn-shadow', method: :post, remote: true, data: { :'job-tracker-button' => true, :'refresh-on-close' => false } do
      %i.fa.fa-download.fa-fw
      = exporter.model_name.human

  - else
    .btn-group.dropdown
      %button.btn.btn-default.btn-shadow{ type: 'button', data: { toggle: 'dropdown' } }
        %i.fa.fa-download.fa-fw
        = t('para.export.name')
        %i.fa.fa-angle-down
      %ul.dropdown-menu
        - component.exporters.each do |exporter|
          %li
            = link_to component.path(namespace: :exports, exporter: exporter.name, q: params[:q].try(:permit!)), method: :post, remote: true, data: { :'job-tracker-button' => true, :'refresh-on-close' => false } do
              = exporter.model_name.human

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
para-0.11.4 app/views/para/admin/resources/_exports_menu.html.haml
para-0.11.3 app/views/para/admin/resources/_exports_menu.html.haml
para-0.11.2 app/views/para/admin/resources/_exports_menu.html.haml
para-0.11.1 app/views/para/admin/resources/_exports_menu.html.haml
para-0.11.0 app/views/para/admin/resources/_exports_menu.html.haml
para-0.10.0 app/views/para/admin/resources/_exports_menu.html.haml
para-0.9.4 app/views/para/admin/resources/_exports_menu.html.haml
para-0.9.3.3 app/views/para/admin/resources/_exports_menu.html.haml
para-0.9.3.2 app/views/para/admin/resources/_exports_menu.html.haml
para-0.9.3.1 app/views/para/admin/resources/_exports_menu.html.haml
para-0.9.2 app/views/para/admin/resources/_exports_menu.html.haml
para-0.9.0 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.15 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.14 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.13 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.12 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.11 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.10 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.9 app/views/para/admin/resources/_exports_menu.html.haml
para-0.8.8 app/views/para/admin/resources/_exports_menu.html.haml