<%= t("projects.index.activity_tab") %>
<% if @activities.size == 0 then %>
- <%= t 'projects.index.no_activities' %>
<% else %>
<% @activities.each do |activity| %>
- <%= l activity.created_at, format: :full %>
<%= 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 %>