- if component.exportable? - if component.exporters.length == 1 - exporter = component.exporters.first = link_to component.path(namespace: :exports, exporter: exporter.name, q: params[:q]), class: 'btn btn-default', method: :post, remote: true, data: { :'job-tracker-button' => true } do = fa_icon 'download' = exporter.model_name.human - else .btn-group %button.btn.btn-default{ type: 'button', data: { toggle: 'dropdown' } } = fa_icon 'download' = t('para.export.name') %span.caret %ul.dropdown-menu - component.exporters.each do |exporter| %li = link_to component.path(namespace: :exports, exporter: exporter.name, q: params[:q]), method: :post, remote: true, data: { :'job-tracker-button' => true } do = exporter.model_name.human