From f076226b3f7f3ebd11ab43993e9c19d1468355fd Mon Sep 17 00:00:00 2001 From: Oleksii Kriuchykhin Date: Thu, 29 Dec 2016 16:31:48 +0100 Subject: [PATCH] Add task name to project activity [SCI-275] --- app/views/project_activities/_index.html.erb | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/app/views/project_activities/_index.html.erb b/app/views/project_activities/_index.html.erb index 676d66a2c..026ea3ffc 100644 --- a/app/views/project_activities/_index.html.erb +++ b/app/views/project_activities/_index.html.erb @@ -6,7 +6,20 @@ <% else %> <% @activities.each do |activity| %>
  • <%= l activity.created_at, format: :full %> -
    <%= activity_truncate(activity.message) %> +
    + + <%= activity_truncate(activity.message) %> + <% if activity.my_module %> + [<%=t 'Module' %>: + <% if activity.my_module.name.length > + Constants::NAME_TRUNCATION_LENGTH %> + <%= truncate(activity.my_module.name, + lenght: Constants::NAME_TRUNCATION_LENGTH) %> + <% else %> + <%= activity.my_module.name %> + <% end %>] + <% end %> +
  • <% end %> <% end %>