Merge pull request #381 from okriuchykhin/ok_SCI_275

Add task name to project activity [SCI-275]
This commit is contained in:
okriuchykhin 2016-12-30 15:32:08 +01:00 committed by GitHub
commit 68ac3486c7

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