Sha256: 29a8c1f7bfcd4b35c54b21b7594c77ff243ba5e318ded713ab8f82a02ca36c6c

Contents?: true

Size: 559 Bytes

Versions: 2

Compression:

Stored size: 559 Bytes

Contents

- if defined?(actions)
  - if actions.count > 1
    - link, text = actions.shift
    .btn-group.text-right
      %a.btn.btn-primary{ href: link }= text
      %button.btn.btn-primary.dropdown-toggle{ type: 'button', id: 'actions-toggle', data: { toggle: 'dropdown' } }
        %span.caret
        %span.sr-only Toggle Dropdown
      %ul.dropdown-menu{ 'aria-labelledby': 'actions-toggle' }
        -actions.each do |k, v|
          %li
            %a{ href: k }= v
  - elsif actions.count > 0
    -actions.each do |k, v|
      %a.btn.btn-primary{ href: k }= v

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ditty-0.10.2 views/partials/actions.haml
ditty-0.10.1 views/partials/actions.haml