Sha256: 2b479588012731775fcf14e6c44f23211348745789d0899af22715a25b4e6f7c

Contents?: true

Size: 560 Bytes

Versions: 1

Compression:

Stored size: 560 Bytes

Contents

- buttons.each do |b|
  - b[:path] ||= "#"
  - b[:options] ||= {:class => "btn btn-mini"}
  - b[:icon] ||= "question"
  != link_to b[:path], b[:options] do
    %i{:class => "icon-#{b[:icon]}"}

- if actions.any?
  .btn-group.pull-right
    = link_to "#", :class => "btn btn-mini dropdown-toggle", :data => {:toggle => "dropdown"} do
      Action
      %i.caret
    %ul.dropdown-menu
      - actions.each do |a|
        - a[:name] ||= "Untitled action"
        - a[:path] ||= "#"
        - a[:options] ||= {}
        %li= link_to a[:name], a[:path], a[:options]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bootstrap_actioncell-0.1.1 app/views/bootstrap_actioncell/_buttons.html.haml