Sha256: 8bb5763041c038e7344b238d3ba8a574c90353e430af7e8ae487827aade12a64
Contents?: true
Size: 752 Bytes
Versions: 5
Compression:
Stored size: 752 Bytes
Contents
<%= cache [audit, I18n.locale, :diff] do %> <h1><%= audit.audited_title %></h1> <table class="diff"> <thead> <tr> <th><%= t '.attribute' %></th> <% if audit.action == 'update' %> <th><%= t '.from' %></th> <th><%= t '.to' %></th> <% else %> <th><%= t '.value' %></th> <% end %> </tr> </thead> <tbody> <% audit.human_audited_changes.each_pair do |field, value| %> <% next if [value].flatten.join.blank? %> <tr> <td><%= audit.auditable_class.human_attribute_name field %></td> <%= render "audited_timeline/diff_#{audit.action}", field: field, value: value %> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems