cirandas.net

ref: master

plugins/recent_activities/views/blocks/activities.html.erb


<%= block_title(block.view_title, block.subtitle) %>

<% unless block.activities.size == 0 %>
    <% block.activities.each do |activity| %>
  • <% if activity.label === 'events' %> <%= _('Event on %s at %s - %s').html_safe % [ time_ago_in_words(activity.target.start_date), activity.target.start_date.strftime("%H:%M"), link_to(activity.user.name, activity.user.url) ] %> <% else %> <%= _('On %s at %s - %s').html_safe % [ time_ago_in_words(activity.created_at), activity.created_at.strftime("%H:%M"), link_to(activity.user.name, activity.user.url) ] %> <% end %> <%= activity.label %>

    <% if activity.label === 'events' %> <%= image_tag(activity.params['first_image']) %>

    <%= activity.params['name'] %>
    <%= strip_tags(activity.params['lead']) %>


    <% else %>

    <%= describe(activity).html_safe %>

    <% end %>
  • <% end %>
<% else %>
<%= c_('None') %>
<% end %>