Sha256: 1c0a00dd49691bbe556767383f4bd69b77710d8901800360aebb9cd8efe0a392

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 KB

Contents

.content_actions.clearfix
  - if settings[:batch] && current_index_view =~ /table/
    .btn-group
      a.btn.dropdown-toggle data-toggle="dropdown" href="#"
        = t 'admin.batch_actions.title'
        span.caret
      ul.dropdown-menu
        - batch_action_list.each do |batch_action|
          li
            a.batch_action_link href='#' data-action=batch_action.name data-confirm=batch_action.confirm = batch_action.title
  - unless button_scopes.blank?
    .btn-group.pjax_links
      - button_scopes.each do |name, opts|
        - active = params[opts[:as]]
        a.btn href=url_for(opts[:as] => (active ? nil : 1)) class=('active' if active) = t "admin.scopes.#{name}"

  a.btn.pull-left#columns_hider_show href="#columns_hider" data-toggle='modal' = t 'admin.columns_hider.button'

  .btn-group#view_layout
    .btn data-css='main_wide' = icon('align-left')
    .btn data-css='main_reverse' = icon('align-right')

  - if normalized_index_views.length > 1
    .btn-group#index_views
      - normalized_index_views.each do |index_view|
        = index_view_link(index_view)

  - if can?(:export, resource_class) && !settings[:skip_export]
    .btn-group.downloads
      = icon('download-alt')
      /- %w(csv xls json).each do |format|
      - %w(csv xls).each do |format|
        - next if format == 'xls' && !defined?(Mime::XLSX)
        = link_to format, params.merge(per_page: 10_000, format: format), id: "export_#{format}"

  - if @search && settings[:sort_buttons]
    .btn-group
      - settings[:sort_buttons].each do |opts|
        = list_sort_link(opts[:title], column: opts[:column], html_options: {class: 'btn'})

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ab_admin-0.6.0 app/views/admin/shared/_content_actions.html.slim