Sha256: 6a5793738bd36f2bd6fe71301f9c669e31241f4c44791731312c19be5e9b785d
Contents?: true
Size: 868 Bytes
Versions: 10
Compression:
Stored size: 868 Bytes
Contents
<% if version.whodunnit.present? %> <% user = @users.select { |u| u.id == version.whodunnit.to_i }.first %> <% unless user.nil? %> <article> <%= avatar(user, 72) %> <div class="content"> <p class="date"> <%= "#{time_ago_in_words(version.created_at)} ago" %> </p> <p class="action"> <%= content_tag(:strong, user.name.present? ? user.name : user.email) %> <%= "#{version.event}d" %> <%= version.item_type.downcase %> <% if cambium_route(:edit, version.item).nil? %> <%= content_tag(:strong, version.item.to_s) %> <% else %> <%= content_tag( :strong, link_to(version.item.to_s, cambium_route(:edit, version.item)) ) %> <% end %> </p> </div> </article> <% end %> <% end %>
Version data entries
10 entries across 10 versions & 1 rubygems