Sha256: ffb45faa7aebdd3aa647b3fa41d87509e2135065ea92bf0f956ac9adeb8d3e16

Contents?: true

Size: 714 Bytes

Versions: 38

Compression:

Stored size: 714 Bytes

Contents

.btn-group
  - buttons[:buttons].each do |button|
    - o = (button[:options] || {}).merge(class: "btn btn-sm btn-default #{button[:options].try(:[], :class)}")
    = link_to fa_icon(button[:icon]), button[:path], o
  - if buttons[:submenu].present?
    button.btn.btn-default.btn-sm.dropdown-toggle data-toggle='dropdown'
      span.caret
    ul.dropdown-menu role='menu'
      - buttons[:submenu].each do |button|
        - if button == :divider
          li.divider role="presentation"
        - else
          li= link_to button[:path], button[:options] do
            - if button[:icon].present?
              => fa_icon(button[:icon])
            - if button[:label].present?
              = button[:label]

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
tabulatr2-0.10.4 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.10.3 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.10.2 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.10.1 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.10.0 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.48 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.47 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.46 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.45 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.44 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.43 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.42 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.41 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.40 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.39 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.38 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.37 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.36 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.35 app/views/tabulatr/_tabulatr_buttons.html.slim
tabulatr2-0.9.34 app/views/tabulatr/_tabulatr_buttons.html.slim