utility.js: simplify even/odd table row striping.

This commit is contained in:
evazion
2018-08-16 21:25:45 -05:00
parent eef8b9c323
commit ad056e69d5
6 changed files with 4 additions and 19 deletions

View File

@@ -19,7 +19,7 @@
</thead>
<tbody>
<% @artist_versions.each do |artist_version| %>
<tr class="<%= cycle 'even', 'odd' %>">
<tr>
<% if artist_version.visible? %>
<td><%= link_to artist_version.name, artist_path(artist_version.artist_id) %></td>
<td class="col-expand"><%= artist_version_other_names_diff(artist_version) %></td>

View File

@@ -16,7 +16,7 @@
</thead>
<tbody>
<% @artist_versions.each do |artist_version| %>
<tr class="<%= cycle 'even', 'odd' %>">
<tr>
<% if artist_version.visible? %>
<td>
<%= link_to artist_version.name, artist_path(artist_version.artist_id) %>