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 %>