Files
2026-03-29 19:10:13 +02:00

39 lines
1.6 KiB
Plaintext

<tr id="<%= dom_id point %>" class="hover:bg-base-200/50 transition-colors">
<td class="px-3 py-2 w-10">
<%= check_box_tag "point_ids[]",
point.id,
nil,
{
multiple: true,
form: :bulk_destroy_form,
class: 'checkbox checkbox-xs',
data: {
checkbox_select_all_target: 'child',
action: 'change->checkbox-select-all#toggleParent'
}
}
%>
</td>
<% if DawarichSettings.reverse_geocoding_enabled? %>
<td class="px-3 py-2 text-sm text-left text-base-content/60" style="overflow: visible;">
<% props = point.geodata.is_a?(Hash) ? point.geodata['properties'] : nil %>
<% if props.present? %>
<% parts = [props['street'], props['city'], props['country']].compact_blank %>
<% else %>
<% parts = [point.city, point.country_name].compact_blank %>
<% end %>
<% if parts.any? %>
<% address = parts.join(', ') %>
<span class="tooltip tooltip-bottom cursor-help" data-tip="<%= address %>">
<span class="block"><%= address %></span>
</span>
<% end %>
</td>
<% end %>
<td class="px-3 py-2 text-sm text-right tabular-nums font-medium whitespace-nowrap <%= speed_text_color(point.velocity) %>">
<%= point_speed(point.velocity, current_user.safe_settings.distance_unit) %>
</td>
<td class="px-3 py-2 text-sm tabular-nums text-base-content/50 whitespace-nowrap"><%= point.lat %>, <%= point.lon %></td>
<td class="px-3 py-2 text-sm tabular-nums whitespace-nowrap"><%= human_datetime_with_seconds(point.recorded_at) %></td>
</tr>