% if @measurements.any? { |m| m.persisted? } %>
<%= l(:field_taken_at_date) %> | <%= l(:field_name) %> | <%= l(:field_source) %> | <%= l(:field_action) %> |
---|---|---|---|
<%= format_datetime(m) %> |
<%= link_to m.name, readouts_measurement_path(m) %>
<%= " (#{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: {}} %> |
<%= l(:label_no_data) %>
<% end %>