Sha256: 960de33f25f2d2d0a98e3ab18ef40a7f28d2a98863a91291c13e6a76f86e2c6c

Contents?: true

Size: 709 Bytes

Versions: 1

Compression:

Stored size: 709 Bytes

Contents

.page-content-wrap
  = panel do |panel|
    = panel.header do
      = icon_link_to t('para.shared.add'), component.relation_path(model.model_name.singular_route_key, action: :new), icon: 'plus', class: 'btn btn-primary'

    - if resources.length > 0
      = panel.body do
        %ul.tree.root-tree{ data: { url: component.relation_path(model.model_name.route_key, action: :tree), :"max-depth" => max_depth_for(model) } }
          = render partial: 'para/admin/resources/tree_item', collection: resources.roots, as: :root

    - else
      = panel.body do
        = alert class: 'no-margin-bottom', dismissable: false do
          = filtered?(attributes) ? t('para.list.no_results') : t('para.list.empty')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
para-0.4.0 app/views/para/admin/resources/_tree.html.haml