1
0
This repository has been archived on 2023-12-07. You can view files and clone it, but cannot push or open issues or pull requests.
body_tracking/app/helpers/measurements_helper.rb
cryptogopher 7b2b855d56 Create Readouts controller
Move #readouts + #toggle_exposure from Measurements to Readouts
2021-05-08 01:02:57 +02:00

10 lines
375 B
Ruby

module MeasurementsHelper
def action_links(m)
link_to(l(:button_retake), retake_measurement_path(m, @view_params),
{remote: true, class: "icon icon-reload"}) +
link_to(l(:button_edit), edit_measurement_path(m, @view_params),
{remote: true, class: "icon icon-edit"}) +
delete_link(measurement_path(m), {remote: true, data: {}})
end
end