Sha256: 86c0d2b46b3230d2d0eda0eb561b06b920d954f97dcabbb9f5615653cad41c2a

Contents?: true

Size: 1.68 KB

Versions: 13

Compression:

Stored size: 1.68 KB

Contents

.pull-left
  - if brick_content.present?
    .resize-toggler.btn.btn-small{ 'data-toggle' => 'collapse', 'data-target' => "#brick-content-#{brick.id}" }
      %i.icon-resize-full
      %i.icon-resize-small
  - if brick.caption.present?
    = brick.caption
  %span.muted
    = brick.backend_label(parenthesis: true)
.pull-right
  .btn-toolbar
    - if brick.persisted?

      - # addable child dropdown menu
      - if brick.respond_to?(:brick_list)
        .btn-group
          = render('brick_type_dropdown', brick_list: brick)

      - # grid selection
      - if brick.class.include? Kuhsaft::Gridded
        .btn-group
          %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
            %i.icon-th
            %span.caret
          %ul.dropdown-menu.pull-right
            %li
              = form.input :col_count, collection: brick.class.available_grid_sizes, as: :radio_buttons, label_method: lambda { |col_count| t("kuhsaft.cms.bricks.columns", count: col_count) }

      - # possible styles
      - unless brick.available_display_styles.empty?
        #display-styles.btn-group
          %a.btn.btn-small.dropdown-toggle{ 'data-toggle' => 'dropdown', 'href' => '#' }
            %i.icon-tint
            %span.caret
          %ul.dropdown-menu.pull-right
            %li
              = form.input :display_styles, collection: brick.translated_available_display_styles, as: :check_boxes

      -# delete button
      - if brick.user_can_delete?
        .btn-group
          = link_to kuhsaft.cms_brick_path(brick), class: 'btn btn-small btn-danger', data: { confirm: t('kuhsaft.cms.bricks.brick_item.confirm') }, method: :delete, remote: true do
            %i.icon-trash.icon-white

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
kuhsaft-2.5.2 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.6.0 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.5.1 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.5.0 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
qbrick-2.5.0.pre app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.4.3 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.4.2 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.4.1 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.4.0 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.3.6 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.3.5 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.3.4 app/views/kuhsaft/cms/bricks/_brick_header.html.haml
kuhsaft-2.3.3 app/views/kuhsaft/cms/bricks/_brick_header.html.haml