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
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Update view to check for attachments
Mir Bhatia1ddfe90af780
diff --git a/app/views/messages/show.html.erb b/app/views/messages/show.html.erbindex d10435c26b4..21635102147 100644--- a/app/views/messages/show.html.erb+++ b/app/views/messages/show.html.erb@@ -121,8 +121,10 @@ See COPYRIGHT and LICENSE files for more details.<div class="wiki op-uc-container"><%= format_text message, :content, attachments: message.attachments %></div>- <% resource = message_attachment_representer(message) %>- <%= list_attachments(resource) %>+ <% if message.attachments.any? %>+ <% resource = message_attachment_representer(message) %>+ <%= list_attachments(resource) %>+ <% end %></div><% end %><%= pagination_links_full @replies, per_page_links: false %>