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.79 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.78 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.77 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.76 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.75 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.74 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.73 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.72 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.71 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.70 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.69 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.68 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.64 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.63 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.62 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.61 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.60 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.59 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.58 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.57 lib/ruby_app/elements/lists/select.html.haml