2016-02-12 23:52:43 +08:00
|
|
|
<li class="activity-item">
|
|
|
|
<span class="activity-item-date">
|
2018-03-12 18:01:23 +08:00
|
|
|
<%= l activity.created_at, format: :full %>
|
2016-02-12 23:52:43 +08:00
|
|
|
</span>
|
|
|
|
<span class="activity-item-text">
|
2016-09-29 20:12:52 +08:00
|
|
|
<%= activity_truncate(activity.message) %>
|
2016-02-12 23:52:43 +08:00
|
|
|
<% if activity.my_module %>
|
2016-07-21 19:11:15 +08:00
|
|
|
[<%=t 'Project' %>:
|
2016-10-05 23:45:20 +08:00
|
|
|
<% if activity.my_module.experiment.project.name.length >
|
2016-10-13 16:00:36 +08:00
|
|
|
Constants::NAME_TRUNCATION_LENGTH %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<div class="modal-tooltip">
|
2016-10-05 23:45:20 +08:00
|
|
|
<%= truncate(activity.my_module.experiment.project.name,
|
|
|
|
lenght: Constants::NAME_TRUNCATION_LENGTH).strip %>
|
2016-08-11 22:57:29 +08:00
|
|
|
<span class="modal-tooltiptext"><%= activity.my_module.experiment.project.name %></span>
|
2016-07-21 19:11:15 +08:00
|
|
|
</div>
|
|
|
|
<% else %>
|
2016-08-11 22:57:29 +08:00
|
|
|
<%= activity.my_module.experiment.project.name %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<% end %>, <%=t 'Module' %>:
|
2016-10-05 23:45:20 +08:00
|
|
|
<% if activity.my_module.name.length >
|
2016-10-13 16:00:36 +08:00
|
|
|
Constants::NAME_TRUNCATION_LENGTH %>
|
2016-10-05 23:45:20 +08:00
|
|
|
<div class="modal-tooltip"><%= truncate(
|
|
|
|
activity.my_module.name,
|
|
|
|
lenght: Constants::NAME_TRUNCATION_LENGTH) %>
|
2016-07-21 19:11:15 +08:00
|
|
|
<span class="modal-tooltiptext"><%= activity.my_module.name %></span>
|
|
|
|
</div>
|
|
|
|
<% else %>
|
|
|
|
<%= activity.my_module.name %>
|
|
|
|
<% end %>
|
|
|
|
]
|
2016-02-12 23:52:43 +08:00
|
|
|
<% end %>
|
|
|
|
</span>
|
2016-08-11 22:57:29 +08:00
|
|
|
</li>
|