aboutsummaryrefslogtreecommitdiffstats
path: root/extensions/Mageia/template/en/default/hook/bug
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@netscape.net>2024-10-25 14:08:47 +0200
committerFrédéric Buclin <LpSolit@netscape.net>2024-10-25 14:08:47 +0200
commit7a433d35a38ad8978081012255e36ccf13700123 (patch)
tree85c706e8b1556413ab565a4a3ae3e9afd73e69ba /extensions/Mageia/template/en/default/hook/bug
parent161724e26223e90568be02876d265b0e2eec1ef6 (diff)
downloadbugs-7a433d35a38ad8978081012255e36ccf13700123.tar
bugs-7a433d35a38ad8978081012255e36ccf13700123.tar.gz
bugs-7a433d35a38ad8978081012255e36ccf13700123.tar.bz2
bugs-7a433d35a38ad8978081012255e36ccf13700123.tar.xz
bugs-7a433d35a38ad8978081012255e36ccf13700123.zip
Split long lines of CVE's in bug reports (mga #33677)
Diffstat (limited to 'extensions/Mageia/template/en/default/hook/bug')
-rw-r--r--extensions/Mageia/template/en/default/hook/bug/comments-a_comment-end.html.tmpl3
-rw-r--r--extensions/Mageia/template/en/default/hook/bug/field-start_field_column.html.tmpl12
2 files changed, 15 insertions, 0 deletions
diff --git a/extensions/Mageia/template/en/default/hook/bug/comments-a_comment-end.html.tmpl b/extensions/Mageia/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
index cbe11b4ca..668c3e8e9 100644
--- a/extensions/Mageia/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
+++ b/extensions/Mageia/template/en/default/hook/bug/comments-a_comment-end.html.tmpl
@@ -67,6 +67,9 @@
change.fieldname == 'cc' ||
change.fieldname == 'flagtypes.name' %]
[% display_value(change.fieldname, value) FILTER email FILTER html %]
+ [% ELSIF change.fieldname == 'cf_cve' %]
+ [%# Split long lists of CVE's on multiple lines %]
+ [% display_value(change.fieldname, value.replace(',', ', ')) FILTER html FILTER html_line_break %]
[% ELSE %]
[% display_value(change.fieldname, value) FILTER html FILTER html_line_break %]
[% END %]
diff --git a/extensions/Mageia/template/en/default/hook/bug/field-start_field_column.html.tmpl b/extensions/Mageia/template/en/default/hook/bug/field-start_field_column.html.tmpl
new file mode 100644
index 000000000..d4dd4ee60
--- /dev/null
+++ b/extensions/Mageia/template/en/default/hook/bug/field-start_field_column.html.tmpl
@@ -0,0 +1,12 @@
+[%# This Source Code Form is subject to the terms of the Mozilla Public
+ # License, v. 2.0. If a copy of the MPL was not distributed with this
+ # file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ #
+ # This Source Code Form is "Incompatible With Secondary Licenses", as
+ # defined by the Mozilla Public License, v. 2.0.
+ #%]
+
+[%# Split long lists of CVE's on multiple lines %]
+[% IF field.name == 'cf_cve' AND NOT editable %]
+ [% SET value = value.replace(',', ', ') %]
+[% END %]