Add task name to project activity [SCI-275]

This commit is contained in:
Oleksii Kriuchykhin 2016-12-29 16:31:48 +01:00
parent 4b50c73474
commit f076226b3f

View file

@ -6,7 +6,20 @@
<% else %>
<% @activities.each do |activity| %>
<li><span class="text-muted"><%= l activity.created_at, format: :full %></span>
<br><span><%= activity_truncate(activity.message) %></span>
<br>
<span>
<%= 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 %>
</span>
</li>
<% end %>
<% end %>