Atividades


<% @activities.each do |activity| %> <% end %>
Data
<%= activity.site.name %> <% if activity.user.present? %> <%= activity.user.name %> <% else %> <%= activity.user_description %> <% end %> <% if activity.event_name == 'create' %> criou <% elsif activity.event_name == 'update'%> editou <% end %> <% if activity.subject.present? %> <%= link_to activity.subject.title, edit_site_section_content_path(@site, activity.subject.section, activity.subject) %> <% else %> <%= activity.subject_description %> <% end %> <%= l(activity.created_at, format: :short) %>

<%= paginate @activities %>