tramway-export/app/views/tramway/export/_button.html.haml
- if Tramway::Export.exportable_model? model_class, project: (@application_engine || @application.name)
- model_name = model_class.name.underscore
- id = "export-#{model_name.gsub('/', '_')}"
.btn-group{ role: :group }
- decorator_class.collections.each do |collection|
= link_to Tramway::Export::Engine.routes.url_helpers.exports_path(model: model_class, scope: collection, filter: params[:filter].present? ? params[:filter].permit! : nil), class: 'btn btn-primary' do
= collection_human_name(model_name: model_name, collection_name: collection)