publiclab/spectral-workbench

View on GitHub
app/views/users/_list.html.erb

Summary

Maintainability
Test Coverage
<div class="row-fluid">
  <% @users.each_with_index do |user,i| %>
    <div class="span3 %> clearfix">
      <li><a href="<%= user_path(user.login) %>"><i class="fa fa-user"></i> <%= user.login %></a></li>
    </div>
    <% if ((i+1)/4.0).to_i == ((i+1)/4.0) %>
    </div>
    <hr style="clear:both;"/>
    <div class="row-fluid">
    <% end %>
  <% end %>
</div>