Sha256: baf4dff11c7e7a189b4875334edfe8ff72ed59d60910226b06a0636c31d5525f

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

- if tmpl = admin_partial_name(table_builder)
  = render tmpl
- else
  table.table.table-striped.index_table#list
    thead
      tr.pjax_links
        = batch_action_toggle
        th= sort_link(@search, :id)
        - table_builder.fields.each do |field|
          th
            - if field.options[:sortable]
              - if field.options[:sortable].is_a?(TrueClass)
                = sort_link @search, field.name
              - else
                - opts = field.options[:sortable].is_a?(Hash) ? field.options[:sortable] : {:column => field.options[:sortable]}
                = sort_link @search, field.name, opts
            - else
              = field.name.is_a?(Symbol) ? ha(field.name) : field.name
        th=t 'admin.table.actions'
    tbody
      - collection.each do |item|
        tr
          = batch_action_item(item)
          td= id_link(item)
          - table_builder.fields.each do |field|
            td= admin_pretty_data call_method_or_proc_on(item, field.data)
          td.actions= item_index_actions(item)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ab_admin-0.1.0 app/views/admin/manager/_table.html.slim