scinote-web/app/views/project_activities/_index.html.erb
2016-07-21 13:11:15 +02:00

13 lines
485 B
Text

<h5 class="text-center"><%= t("projects.index.activity_tab") %></h5>
<hr>
<ul class="no-style double-line content-activities">
<% if @activities.size == 0 then %>
<li><em><%= t 'projects.index.no_activities' %></em></li>
<% else %>
<% @activities.each do |activity| %>
<li><span class="text-muted"><%= l activity.created_at, format: :full %></span>
<br><span><%= activity_truncate( activity.message, 30 ) %></span>
</li>
<% end %>
<% end %>
</ul>