Sha256: 9f27014134faee7c5361071b9c423a8565cfe4a541d0868de69d4952bfd0ec2b

Contents?: true

Size: 702 Bytes

Versions: 3

Compression:

Stored size: 702 Bytes

Contents

<% published ||= {} %>
<% diff = ReviewAndApprove::HashDiff.diff(published,current) %>
<% diff_keys = diff.keys %>
<div class="review_and_approve">
<% if diff_keys.count > 0 %>
  <table>
    <thead>
      <tr>
        <th scope="col" class="rounded-company">Field Name</th>
        <th scope="col" class="rounded-q1">Published Value</th>
        <th scope="col" class="rounded-q4">Current Value</th>
      </tr>
    </thead>

    <tbody>
      <% diff_keys.each do |key| %>
        <%= render :partial => 'review_and_approve/line_item', :locals => {:key => key, :diff_val => diff[key], :depth => -1} %>
      <% end %>
    </tbody>

  </table>
<% else %>
  Latest version is published
<% end %>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
review_and_approve-0.0.8 app/views/review_and_approve/_delta.html.erb
review_and_approve-0.0.7 app/views/review_and_approve/_delta.html.erb
review_and_approve-0.0.6 app/views/review_and_approve/_delta.html.erb