Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Add missing status explanation column to projects

Oliver Günther15a8257314e8
diff --git a/app/cells/projects/row_cell.rb b/app/cells/projects/row_cell.rb
index c5000c9ecde..92e50590a08 100644
--- a/app/cells/projects/row_cell.rb
+++ b/app/cells/projects/row_cell.rb
@@ -76,6 +76,12 @@ module Projects
content
end
+ def status_explanation
+ if project.status.try(:explanation)
+ format_text(project.status.explanation)
+ end
+ end
+
def public
checked_image project.public?
end
@@ -122,6 +128,8 @@ module Projects
case column
when :name
"project--hierarchy #{project.archived? ? 'archived' : ''}"
+ when :status_explanation
+ "-no-ellipsis"
when /\Acf_/
cf = custom_field(column)
"format-#{cf.field_format}"
diff --git a/app/cells/projects/table_cell.rb b/app/cells/projects/table_cell.rb
index 4240505ff7a..d8d6e8d62b9 100644
--- a/app/cells/projects/table_cell.rb
+++ b/app/cells/projects/table_cell.rb
@@ -55,6 +55,7 @@ module Projects
[:hierarchy, builtin: true],
[:name, builtin: true, caption: Project.human_attribute_name(:name)],
[:project_status, caption: Project.human_attribute_name(:status)],
+ [:status_explanation, caption: Projects::Status.human_attribute_name(:explanation)],
[:public, caption: Project.human_attribute_name(:public)],
*custom_field_columns,
*admin_columns