Sha256: fbb5b89e942ad09358d9fa21606b5a2eedf3a8d22f0f4439e97f39820ea75fd6

Contents?: true

Size: 722 Bytes

Versions: 3

Compression:

Stored size: 722 Bytes

Contents

- # Button to add structureables under a parent structureable.
- #
- # locals:
- #   - parent
- #   - parent_id
- #   - parent_type
- #

%div.btn-group.add-structureable
  %a.btn.btn-default.dropdown-toggle(data-toggle="dropdown" href="#")
    = icon :plus
    = I18n.t(:add)
    %span.caret
  %ul.dropdown-menu
    - if can? :create_page_for, parent
      %li
        = link_to I18n.t(:page), pages_path(parent_id: parent_id, parent_type: parent_type), method: :post
    - if can? :create_group_for, parent
      %li
        = link_to I18n.t(:group), groups_path(parent_id: parent_id, parent_type: parent_type), method: :post
        
    = render partial: 'layouts/add_structureable_additions', locals: {parent: parent}

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
your_platform-1.0.1 app/views/shared/_add_structureable.html.haml
your_platform-1.0.0 app/views/shared/_add_structureable.html.haml
your_platform-0.0.2 app/views/shared/_add_structureable.html.haml