Sha256: 380d0c0ef772a39e5809c8a601656a265e1557286c070443a69d177af502efcf

Contents?: true

Size: 450 Bytes

Versions: 75

Compression:

Stored size: 450 Bytes

Contents

/
  #{__FILE__}
%ul.select{attributes}
  - is_even = true
  - self.items.each_with_index do |item, index|
    - unless item == self.selected_item
      %li.item{:class => is_even ? 'even' : 'odd'}
        %a.item{:href => '', :index => index}
          = yield(:item, item, index) || item
    - else
      %li.item.selected
        %a.item.selected{:href => '', :index => index}
          = yield(:item, item, index) || item
    - is_even = !is_even

Version data entries

75 entries across 75 versions & 1 rubygems

Version Path
RubyApp-0.0.26 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.25 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.24 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.23 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.22 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.21 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.20 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.19 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.18 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.17 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.16 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.15 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.14 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.13 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.12 lib/ruby_app/elements/lists/select.html.haml