Sha256: fda951a64f034b37df5b12c49127cace454be306f6ac7865aa66f4115e7c51a0

Contents?: true

Size: 998 Bytes

Versions: 2

Compression:

Stored size: 998 Bytes

Contents

.page-content-wrap
  .page-list
    .page-list-heading  
      = render partial: find_partial_for(relation, :actions), locals: { relation: relation, component: component, model: model, allow_adding_resource: allow_adding_resource }

    .page-list-heading  
      .flextable
        = render partial: find_partial_for(relation, :filters), locals: { attributes: attributes }

    - if resources.length > 0
      .page-entries-info
        = page_entries(resources)
      .page-list-body
        = table_for(resources: resources, model: model, component: component, attributes: attributes)

    - else
      = alert class: 'no-results', dismissable: false do
        - if filtered?(attributes)
          = t('para.list.no_results')
        - else
          = t('para.list.empty')

        = add_button_for(component, relation, model) if allow_adding_resource

    - if resources.total_count > resources.length
      .page-list-footer
        = paginate resources, theme: Para.config.pagination_theme

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
para-0.7.1 app/views/para/admin/resources/_list.html.haml
para-0.7.0 app/views/para/admin/resources/_list.html.haml