We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 743ef41 + 5855747 commit 97d1c8eCopy full SHA for 97d1c8e
app/components/open_project/common/inplace_edit_fields/display_fields/rich_text_area_component.rb
@@ -43,8 +43,9 @@ def input_specific_call
43
classes: "op-uc-container op-uc-container_reduced-headings -multiline")) do
44
if field_value.present?
45
if truncated
46
+ name = custom_field? ? custom_field.name : attribute.to_s.humanize
47
render OpenProject::Common::AttributeComponent.new("#{attribute}-truncated-display-field",
- attribute,
48
+ name,
49
field_value,
50
lines: 3)
51
else
0 commit comments