<% if version.whodunnit.present? %> <% user = @users.select { |u| u.id == version.whodunnit.to_i }.first %>
<%= avatar(user, 72) %>

<%= "#{time_ago_in_words(version.created_at)} ago" %>

<%= content_tag(:strong, user.name.present? ? user.name : user.email) %> <%= "#{version.event}d" %> <%= version.item_type.downcase %> <% if cambium_edit_route(version.item).nil? %> <%= content_tag(:strong, version.item.to_s) %> <% else %> <%= content_tag( :strong, link_to(version.item.to_s, cambium_edit_route(version.item)) ) %> <% end %>

<% end %>