Sha256: 3cbda7df5d335d89bdaeaaa8bc344587bc3d4fcd37659ec53e01ff16f860afb9
Contents?: true
Size: 900 Bytes
Versions: 4
Compression:
Stored size: 900 Bytes
Contents
- unless brick_list.brick_types.empty? .btn-group - if brick_list.brick_types.allowed.count > 1 %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), kuhsaft.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
4 entries across 4 versions & 1 rubygems