forked from fixin.me/fixin.me
parent
b9d979ad0c
commit
c8c8d8cd70
@ -355,7 +355,7 @@ table.items td:last-child {
|
|||||||
}
|
}
|
||||||
table.items td {
|
table.items td {
|
||||||
border-top: solid 1px var(--color-border-gray);
|
border-top: solid 1px var(--color-border-gray);
|
||||||
min-height: 2.4em;
|
height: 2.4em;
|
||||||
padding-block: 0.1em;
|
padding-block: 0.1em;
|
||||||
}
|
}
|
||||||
/* For <a> to fill <td> completely, we use an ::after pseudoelement. */
|
/* For <a> to fill <td> completely, we use an ::after pseudoelement. */
|
||||||
|
@ -3,12 +3,14 @@
|
|||||||
<%= unit %>
|
<%= unit %>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<% if current_user.at_least(:active) %>
|
||||||
<td class="actions">
|
<td class="actions">
|
||||||
<% unless unit.portable.nil? %>
|
<% unless unit.portable.nil? %>
|
||||||
<% if current_user.at_least(:active) && unit.default? %>
|
<% if unit.default? %>
|
||||||
<%= image_button_to t('.import'), 'download-outline', import_default_unit_path(unit),
|
<%= image_button_to t('.import'), 'download-outline', import_default_unit_path(unit),
|
||||||
disabled_attributes(!unit.portable?) %>
|
disabled_attributes(!unit.portable?) %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<% if current_user.at_least(:admin) %>
|
<% if current_user.at_least(:admin) %>
|
||||||
<% if unit.default? %>
|
<% if unit.default? %>
|
||||||
<%= image_button_to t('.delete'), 'delete-outline', default_unit_path(unit),
|
<%= image_button_to t('.delete'), 'delete-outline', default_unit_path(unit),
|
||||||
@ -20,4 +22,5 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user