summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2018-11-26 00:23:08 +0000
committerGo MAEDA <maeda@farend.jp>2018-11-26 00:23:08 +0000
commit6a12b5839bf4f4ebceef398e167737ca0cca3c80 (patch)
treec56056c498a0226c67860e67421b6c6d0430810c /app/helpers
parentef6d0dd3556e8e9aeb6819f7a5018157488e1bd8 (diff)
downloadredmine-6a12b5839bf4f4ebceef398e167737ca0cca3c80.tar.gz
redmine-6a12b5839bf4f4ebceef398e167737ca0cca3c80.zip
Add wiki class also for half width custom fields with text formatting enabled (#30027).
Patch by Marius BALTEANU. git-svn-id: http://svn.redmine.org/redmine/trunk@17634 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/issues_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb
index da2b8ec13..654f18e01 100644
--- a/app/helpers/issues_helper.rb
+++ b/app/helpers/issues_helper.rb
@@ -234,8 +234,12 @@ module IssuesHelper
issue_fields_rows do |rows|
values.each_with_index do |value, i|
css = "cf_#{value.custom_field.id}"
+ attr_value = show_value(value)
+ if value.custom_field.text_formatting == 'full'
+ attr_value = content_tag('div', attr_value, class: 'wiki')
+ end
m = (i < half ? :left : :right)
- rows.send m, custom_field_name_tag(value.custom_field), show_value(value), :class => css
+ rows.send m, custom_field_name_tag(value.custom_field), attr_value, :class => css
end
end
end