mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 11:57:16 +08:00
SCI-3702 revert the fix and use local variables
This commit is contained in:
parent
1c84e46a21
commit
47d3315d82
1 changed files with 3 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
|
|
||||||
module DrawStepChecklist
|
module DrawStepChecklist
|
||||||
def draw_step_checklist(subject)
|
def draw_step_checklist(subject)
|
||||||
|
team = @report_team
|
||||||
|
user = @user
|
||||||
checklist = Checklist.find_by_id(subject['id']['checklist_id'])
|
checklist = Checklist.find_by_id(subject['id']['checklist_id'])
|
||||||
return unless checklist
|
return unless checklist
|
||||||
|
|
||||||
|
@ -22,7 +24,7 @@ module DrawStepChecklist
|
||||||
@docx.ul do
|
@docx.ul do
|
||||||
items.each do |item|
|
items.each do |item|
|
||||||
li do
|
li do
|
||||||
text SmartAnnotations::TagToText.new(@user, @report_team, item.text).text
|
text SmartAnnotations::TagToText.new(user, team, item.text).text
|
||||||
text " (#{I18n.t('projects.reports.elements.step_checklist.checked')})", color: '2dbe61' if item.checked
|
text " (#{I18n.t('projects.reports.elements.step_checklist.checked')})", color: '2dbe61' if item.checked
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Reference in a new issue