Sha256: 74bef927ec9817a131068f160dd385b597181c1fc7dc4b0320f6a59e690cabc5
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
- unless brick_list.brick_types.allowed.empty? .btn-group - if brick_list.brick_types.allowed.many? %a.btn.btn-small.btn-primary.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' } = t('.add_element') %span.caret %ul.dropdown-menu.pull-right - brick_list.brick_types.allowed.group_by(&:group).each do |group, types| - types.map { |type| cms_brick_item brick_list, type }.compact.each do |brick_type_item| %li = brick_type_item .divider - else - brick_list.brick_types.allowed.each do |type| = link_to t('.add_specific_element', name: type.class_name.constantize.model_name.human), qbrick.new_cms_brick_path(brick: { type: type.class_name, brick_list_id: brick_list.id, brick_list_type: brick_list.brick_list_type }), remote: true, class: 'btn btn-small btn-primary'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
qbrick-2.7 | app/views/qbrick/cms/backend/_brick_type_dropdown.html.haml |
qbrick-2.6.10 | app/views/qbrick/cms/backend/_brick_type_dropdown.html.haml |