mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-07 05:34:55 +08:00
Add task name to project activity [SCI-275]
This commit is contained in:
parent
4b50c73474
commit
f076226b3f
1 changed files with 14 additions and 1 deletions
|
@ -6,7 +6,20 @@
|
||||||
<% else %>
|
<% else %>
|
||||||
<% @activities.each do |activity| %>
|
<% @activities.each do |activity| %>
|
||||||
<li><span class="text-muted"><%= l activity.created_at, format: :full %></span>
|
<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>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
Loading…
Add table
Reference in a new issue