File: full_list_method.erb

package info (click to toggle)
ruby-enumerable-statistics 2.0.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,036 kB
  • sloc: ansic: 1,808; ruby: 679; makefile: 11; sh: 4
file content (10 lines) | stat: -rwxr-xr-x 341 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
<% even_odd = 'odd'  %>
<% @items.each do |item| %>
  <li class="<%= even_odd %> <%= item.has_tag?(:deprecated) ? 'deprecated' : '' %>">
    <div class="item">
      <%= linkify item, h(item.name(true)) %>
      <small><%= item.namespace.title %></small>
    </div>
  </li>
  <% even_odd = (even_odd == 'even' ? 'odd' : 'even') %>
<% end %>