<%= tag.tr id: dom_id(unit), ondragstart: 'dragStart(event)', ondragend: 'dragEnd(event)', ondragover: 'dragOver(event)', ondrop: 'drop(event)', ondragenter: 'dragEnter(event)', ondragleave: 'dragLeave(event)', data: {drag_path: rebase_unit_path(unit), drop_id: dom_id(unit.base || unit)} do %> <%= link_to unit, edit_unit_path(unit), onclick: 'this.blur();', data: {turbo_stream: true} %> <%= unit.description %> <%= unit.multiplier.to_html %> <% if current_user.at_least(:active) %> <% if unit.base.nil? %> <%= image_link_to t('.new_subunit'), 'plus-outline', new_unit_path(unit), id: dom_id(unit, :new, :link), onclick: 'this.blur();', data: {turbo_stream: true} %> <% end %> <%= image_button_to t('.delete_unit'), 'delete-outline', unit_path(unit), method: :delete %> <% if unit.movable? %> ⠿ <% else %> <% end %> <% end %> <% end %>