1
0

Last changes on Redmine 4.0

This commit is contained in:
cryptogopher
2022-07-24 16:46:28 +02:00
parent 745e1f4264
commit 71bfc5a33a
18 changed files with 154 additions and 60 deletions

View File

@@ -1,14 +1,8 @@
module MeasurementsHelper
def readout_markup(quantity, readout)
content = "#{' '*quantity.depth}#{quantity.name} #{format_amount(readout)}"
classes = 'bolded' if @routine.quantities.include?(quantity)
content_tag(:span, content, {class: classes}, false)
end
def action_links(m)
link_to(l(:button_retake), retake_measurement_path(m, @view_params),
link_to(l(:button_retake), retake_measurement_path(m),
{remote: true, class: "icon icon-reload"}) +
link_to(l(:button_edit), edit_measurement_path(m, @view_params),
link_to(l(:button_edit), edit_measurement_path(m),
{remote: true, class: "icon icon-edit"}) +
delete_link(measurement_path(m), {remote: true, data: {}})
end

View File

@@ -0,0 +1,15 @@
module ReadoutsHelper
def readout_markup(quantity, readout)
content = "#{' '*quantity.depth}#{quantity.name} #{format_amount(readout)}"
classes = 'bolded' if @routine.quantities.include?(quantity)
content_tag(:span, content, {class: classes}, false)
end
def action_links(m)
link_to(l(:button_retake), retake_measurement_path(m),
{remote: true, class: "icon icon-reload"}) +
link_to(l(:button_edit), edit_measurement_readouts_path(m),
{remote: true, class: "icon icon-edit"}) +
delete_link(measurement_path(m), {remote: true, data: {}})
end
end