<li>
  <p>
    {% set pkg_link = (h.url_for('dataset.read', id=change.pkg_id)) %}
    {% if change.method == "change" %}

      {{ _('Set maintainer email of') }}
      <a href="{{pkg_link}}">
        {{change.title}}
      </a>

      {{ _('to') }}
      <a href="{{'mailto:' + change.new_maintainer_email}}">
        {{change.new_maintainer_email}}
      </a>

      {{ _('(previously') }}
      <a href="{{'mailto:' + change.old_maintainer_email}}">
        {{change.old_maintainer_email}}
      </a>
      {{ _(')') }}

    {% elif change.method == "add" %}

      {{ _('Set maintainer email of') }}
      <a href="{{pkg_link}}">
       {{change.title}}
      </a>

      {{ _('to') }}
      <a href="{{'mailto:' + change.new_maintainer_email}}">
        {{change.new_maintainer_email}}
      </a>

    {% elif change.method == "remove" %}

      {{ _('Removed maintainer email from') }}
      <a href="{{pkg_link}}">
       {{change.title}}
      </a>

    {% else %}

      {{ _('No fields were updated. See the metadata diff for more details.') }}

    {% endif %}
  </p>
</li>
