Sha256: b2157ce1a139ebc630da4a6a461345f522dac7528a16df6c49af55e1dc56d273

Contents?: true

Size: 738 Bytes

Versions: 4

Compression:

Stored size: 738 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: find_partial_for(model, 'tree_item'), collection: resources.roots, as: :root, locals: { model: model}

    - 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

4 entries across 4 versions & 1 rubygems

Version Path
para-0.5.4 app/views/para/admin/resources/_tree.html.haml
para-0.5.3 app/views/para/admin/resources/_tree.html.haml
para-0.5.1 app/views/para/admin/resources/_tree.html.haml
para-0.5.0 app/views/para/admin/resources/_tree.html.haml