%# TODO: show hint when no quantities/units defined %>
<% if current_user.at_least(:active) %>
<%= image_link_to t('.new_measurement'), 'plus-outline', new_measurement_path,
id: :new_measurement_link, onclick: 'this.blur();',
data: {turbo_stream: true} %>
<% end %>
| <%= Quantity.model_name.human %> |
<%= Readout.human_attribute_name(:value) %> |
<%= Unit.model_name.human %> |
<%= Readout.human_attribute_name(:created_at) %> |
<% if current_user.at_least(:active) %>
|
<% end %>
<%= render(partial: 'readout', collection: @measurements, as: :readout) || render_no_items %>