[view]
{% if auth_to.edit and not editgroup.changelog_index and not editgroup.submitted %}
[re-edit]
{% endif %}
[re-edit]
{% endif %}
{{ entity_type }}_{{ edit.ident }}
{% if edit.redirect_ident %}
=> redirect to {{ entity_type }}/{{ edit.redirect_ident }}
{% elif not edit.revision %}
deleted
{% elif not edit.prev_revision %}
created
{% else %}
updated
{% endif %}
{% if edit.revision %}
Revision: {{ edit.revision }}
{% endif %}
{% if edit.extra %}
{{ entity_macros.extra_metadata(edit.extra) }}
{% endif %}
{% if edit.revision and not edit.redirect_ident and edit.ident in diffs %}
{% for line in diffs[edit.ident]['diff_lines'] %}
{% set line_space = false %}
{% if line.startswith('@@') or line.startswith('---') or line.startswith('+++') %}
{% set line_color = "lightblue" %}
{% elif line.startswith('+') %}
{% set line_color = "lightgreen" %}
{% elif line.startswith('-') %}
{% set line_color = "#ffa3a3" %}
{% else %}
{% set line_color = "#ddd" %}
{% set line_space = true %}
{% endif %}
{% endif %}
{% if line_space %} {% endif %}{{ line.strip() }}{% endfor %}