Sha256: 986833a4eea5b7d19cf7c1e19d3911b12f7a29200bf6abf11f818980b0fc9e13

Contents?: true

Size: 1.04 KB

Versions: 5

Compression:

Stored size: 1.04 KB

Contents

.page-content-wrap
  = panel do |panel|
    = panel.header do
      = render partial: find_partial_for(relation, :actions), locals: { relation: relation, component: component, model: model, allow_adding_resource: allow_adding_resource }

    = panel.body do
      = render partial: find_partial_for(relation, :filters), locals: { attributes: attributes }

    - if resources.length > 0
      = panel.body class: 'page-entries-info' do
        = page_entries_info(resources)

      = panel.body class: '' do
        = table_for(resources: resources, model: model, component: component, attributes: attributes)

    - else
      = panel.body do
        = alert class: 'no-results no-margin-bottom', 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
      = panel.footer do
        = paginate resources, theme: Para.config.pagination_theme

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
para-0.6.3 app/views/para/admin/resources/_list.html.haml
para-0.6.2 app/views/para/admin/resources/_list.html.haml
para-0.5.4 app/views/para/admin/resources/_list.html.haml
para-0.5.3 app/views/para/admin/resources/_list.html.haml
para-0.5.1 app/views/para/admin/resources/_list.html.haml