Commit 4c2ed6c9 authored by Jonathan Schafer's avatar Jonathan Schafer

Clean up HAML from MR

Break up long lines
Fix path to file
Update locale file
parent ed9f7cea
......@@ -28,7 +28,13 @@
%h3= _("File Location")
%ul
%li
%a{ :href=>project_tree_path(@project, @vulnerability.finding.location["file"]), target: "_blank", rel: 'noopener noreferrer' }= _("%{file}:%{line} (%{klass}::%{method})") % { file: @vulnerability.finding.location["file"], line: @vulnerability.finding.location["start_line"], klass: @vulnerability.finding.location["class"], method: @vulnerability.finding.location["method"] }
- link_text = _("File: %{file}:%{line}") % { file: @vulnerability.finding.location["file"],
line: @vulnerability.finding.location["start_line"] }
%a{ :href=>fast_project_blob_path(@project, tree_join(@vulnerability.project.default_branch, @vulnerability.finding.location["file"])),
target: "_blank", rel: 'noopener noreferrer' }= link_text
- if @vulnerability.finding.location["class"]
%li= _("Class: %{className}::%{method}") % {className: @vulnerability.finding.location["class"],
method: @vulnerability.finding.location["method"] }
- if @vulnerability.finding.links.any?
%h3= _("Links")
......
......@@ -305,9 +305,6 @@ msgstr ""
msgid "%{filePath} deleted"
msgstr ""
msgid "%{file}:%{line} (%{klass}::%{method})"
msgstr ""
msgid "%{firstLabel} +%{labelCount} more"
msgstr ""
......@@ -3956,6 +3953,9 @@ msgstr ""
msgid "Class"
msgstr ""
msgid "Class: %{className}::%{method}"
msgstr ""
msgid "Classification Label (optional)"
msgstr ""
......@@ -8924,6 +8924,9 @@ msgstr ""
msgid "File upload error."
msgstr ""
msgid "File: %{file}:%{line}"
msgstr ""
msgid "Files"
msgstr ""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment