mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-01 21:21:50 +08:00
Merge pull request #381 from okriuchykhin/ok_SCI_275
Add task name to project activity [SCI-275]
This commit is contained in:
commit
68ac3486c7
1 changed files with 14 additions and 1 deletions
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue