<% published ||= {} %> <% diff_keys = published.diff(current).keys %>
<% if diff_keys.count > 0 %> <% published.diff(current).keys.each do |key| %> <% end %>
Field Name Published Value Current Value
<%= key %> <%= published[key] || "" %> <%= current[key] || "" %>
<% else %> Latest version is published <% end %>