<% if @measurements.any? { |m| m.persisted? } %> <% @measurements.each do |m| %> <% next if m.new_record? %> <% end %>
<%= l(:field_taken_at_date) %> <%= l(:field_name) %> <%= l(:field_source) %> <%= l(:field_action) %>
<%= m.taken_at.getlocal.strftime("%F %R") %>
<%= m.name %>
<%= " (#{pluralize(m.readouts.size, 'readout')})" %>
<%= m.source.name if m.source.present? %> <%= link_to l(:button_retake), retake_measurement_path(m), { remote: true, class: "icon icon-reload" } %> <%= link_to l(:button_edit), edit_measurement_path(m), { remote: true, class: "icon icon-edit" } %> <%= delete_link measurement_path(m), {remote: true, data: {}} %>
<% else %>

<%= l(:label_no_data) %>

<% end %>