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.2.7 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.2.6 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.2.5 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.2.4 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.2.3 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.2.2 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.2.1 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.2.0 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.91 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.90 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.89 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.88 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.87 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.86 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.85 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.84 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.83 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.82 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.81 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.80 lib/ruby_app/elements/lists/select.html.haml