Expand link to whole table cell

This commit is contained in:
2023-12-05 19:10:36 +01:00
parent 3127c72288
commit bad64c5dbf
4 changed files with 22 additions and 14 deletions

View File

@@ -20,9 +20,8 @@
<tbody>
<% Unit.each_with_level(@units) do |unit, level| %>
<tr>
<td>
<%= link_to unit.symbol, edit_unit_path(unit),
{style: level > 0 ? 'padding-left:0.6em;': ''} %>
<td class="link">
<%= table_link_to unit.symbol, edit_unit_path(unit), class: level > 0 ? 'subunit' : '' %>
</td>
<td><%= unit.name %></td>
<td class="number"><%= scientifize(unit.multiplier) unless unit.multiplier == 1 %></td>