[%- PROCESS 'edit/details/macros.tt' -%]

<table class="details edit-release-group">
  <tr>
    <th>[% l('Release Group:') %]</th>
    <td colspan="2">
      [% descriptive_link(edit.display_data.release_group) %]
    </td>
  </tr>

  [%- display_word_diff(l('Name:'),
                        html_escape(edit.display_data.name.old),
                        html_escape(edit.display_data.name.new)) -%]

  [%- display_word_diff(l('Disambiguation:'),
                        html_escape(edit.display_data.comment.old),
                        html_escape(edit.display_data.comment.new)) -%]

  [%- display_full_change(l('Primary Type:'),
                          html_escape(edit.display_data.type.old.name),
                          html_escape(edit.display_data.type.new.name)) -%]

  [%- display_diff(l('Secondary Types:'),
                   html_escape(edit.display_data.secondary_types.old),
                   html_escape(edit.display_data.secondary_types.new),
                   ' \+ ') -%]

  [%- IF edit.display_data.artist_credit -%]
  <tr>
    <th>[% l('Artist:') %]</th>
    <td class="old">[% expanded_artist_credit(edit.display_data.artist_credit.old) %]</td>
    <td class="new">[% expanded_artist_credit(edit.display_data.artist_credit.new) %]</td>
  </tr>
  [%- END -%]
</table>
