{% extends "editgroup_view.html" %} {% macro edit_diff_list(auth_to, editgroup, edits, diffs, entity_type, entity_name) -%} {% if edits %}

{{ entity_name }} Edit Diffs ({{ edits|count }})


{% for edit in edits %}
{{ entity_edit_header(auth_to, editgroup, edit, entity_type, entity_name) }} {% if edit.extra %} {{ entity_macros.extra_metadata(edit.extra) }} {% endif %} {% if edit.revision and not edit.redirect_ident and edit.ident in diffs and diffs[edit.ident] != None %}
{% for line in diffs[edit.ident] %} {% set line_space = false %} {% if line.startswith('@@') or line.startswith('---') or line.startswith('+++') %} {% set line_color = "lightblue" %}{# a light blue #} {% elif line.startswith('+') %} {% set line_color = "#a4efa4" %}{# a light green #} {% elif line.startswith('-') %} {% set line_color = "#ffa3a3" %}{# a light red #} {% else %} {% set line_color = "#eee" %}{# almost white #} {% set line_space = true %} {% endif %}
{% if line_space %} {% endif %}{{ line.strip() }}
{% endfor %}
{% endif %}
{% endfor %}
{% endif %} {%- endmacro %} {% block title %}Editgroup Diff{% endblock %} {% block pagetitle %}Editgroup Diff{% endblock %} {% block editgroupedits %} {{ edit_diff_list(auth_to, editgroup, editgroup.edits.releases, editgroup_diffs.release, "release", "Release") }} {{ edit_diff_list(auth_to, editgroup, editgroup.edits.works, editgroup_diffs.work, "work", "Work") }} {{ edit_diff_list(auth_to, editgroup, editgroup.edits.containers, editgroup_diffs.container, "container", "Container") }} {{ edit_diff_list(auth_to, editgroup, editgroup.edits.creators, editgroup_diffs.creator, "creator", "Creator") }} {{ edit_diff_list(auth_to, editgroup, editgroup.edits.files, editgroup_diffs.file, "file", "File") }} {{ edit_diff_list(auth_to, editgroup, editgroup.edits.filesets, editgroup_diffs.fileset, "fileset", "File Set") }} {{ edit_diff_list(auth_to, editgroup, editgroup.edits.webcaptures, editgroup_diffs.webcapture, "webcapture", "Web Capture") }} {% endblock %}