Skip to content

Commit

Permalink
Layout/LineLength: Line is too long
Browse files Browse the repository at this point in the history
  • Loading branch information
picman committed Oct 24, 2024
1 parent 3f1d1f5 commit 832ec06
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/redmine_dmsf/hooks/views/issue_view_hooks.rb
Original file line number Diff line number Diff line change
Expand Up @@ -274,8 +274,13 @@ def attachment_row(dmsf_file, link, issue, controller)
if issue.attributes_editable? && ((link && User.current.allowed_to?(:file_manipulation,
dmsf_file.project)) || (!link &&
User.current.allowed_to?(:file_delete, dmsf_file.project)))
url = if link
dmsf_link_path link, commit: 'yes', back_url: issue_path(issue)
else
dmsf_file_path id: dmsf_file, commit: 'yes', back_url: issue_path(issue)
end
html << link_to('',
link ? dmsf_link_path(link, commit: 'yes', back_url: issue_path(issue)) : dmsf_file_path(id: dmsf_file, commit: 'yes', back_url: issue_path(issue)),
url,
data: { confirm: l(:text_are_you_sure) },
method: :delete,
title: l(:button_delete),
Expand Down

0 comments on commit 832ec06

Please sign in to comment.