{% if extra.mode == 'story' %}
{%- if item.user and item.user.id in edit_log_users -%}
{%- with user=edit_log_users.get(item.user.id) %}
{%- include 'includes/userlink.html' -%}
{% endwith -%}
{%- else -%}
N/A
{%- endif %}
{{ extra.label }} {{ item.story.title }}
{% if extra.list_items %}
{% for k, v in item.data.items() %}
-
{%- if k == 'contributors' -%}
{%- include 'includes/edit_log_contributors.html' with context -%}
{%- else -%}
{{ k }}:
{{ v[0] }}
→
{{ v[1] }}
{%- endif %}
{% endfor %}
{% endif %}
{%- elif extra.mode == 'chapter' %}
{%- if item.user and item.user.id in edit_log_users -%}
{%- with user=edit_log_users.get(item.user.id) %}
{%- include 'includes/userlink.html' -%}
{% endwith -%}
{%- else -%}
N/A
{%- endif %}
{{ extra.label }}
{% if item.chapter -%}
«{{ item.chapter_autotitle }}»
{%- else -%}
«{{ item.chapter_autotitle }}»
{%- endif %}
{{ pgettext('story_edit_log', 'of story') }} {{ item.story.title }}
{% if extra.list_items %}
{% for k, v in item.data.items() %}
-
{{ k }}:
{{ v[0] }}
→
{{ v[1] }}
{% endfor %}
{% endif %}
{% if not extra.diff_html and extra.diff_html_available %}
{% if not extra.list_items %}
{% endif %} {{ _('Show changes') }}
{% endif %}
{%- else %}???{% endif %}