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.56 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.55 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.54 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.53 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.52 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.51 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.50 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.49 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.48 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.47 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.46 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.45 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.44 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.43 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.42 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.41 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.30 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.29 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.28 lib/ruby_app/elements/lists/select.html.haml
RubyApp-0.0.27 lib/ruby_app/elements/lists/select.html.haml