{% if change.method == "add" %}
{{ _('Updated description of resource {resource_link} in {pkg_link} to
{new_desc}').format( pkg_link = '{pkg_name}'.format( pkg_url = h.url_for(controller='dataset', action='read', id=change.pkg_id), pkg_name = change.title )|safe, resource_link = '{resource_name}'.format( resource_url = h.url_for(qualified=True, controller='resource', action='read', id=change.pkg_id, resource_id = change.resource_id), resource_name = change.resource_name )|safe, new_desc = change.new_desc ) }} {% elif change.method == "remove" %} {{ _('Removed description from resource {resource_link} in {pkg_link}').format( pkg_link = '{pkg_name}'.format( pkg_url = h.url_for(controller='dataset', action='read', id=change.pkg_id), pkg_name = change.title )|safe, resource_link = '{resource_name}'.format( resource_url = h.url_for(qualified=True, controller='resource', action='read', id=change.pkg_id, resource_id = change.resource_id), resource_name = change.resource_name )|safe )}} {% elif change.method == "change" %} {{ _('Updated description of resource {resource_link} in {pkg_link} from
{old_desc}to
{new_desc}').format( pkg_link = '{pkg_name}'.format( pkg_url = h.url_for(controller='dataset', action='read', id=change.pkg_id), pkg_name = change.title )|safe, resource_link = '{resource_name}'.format( resource_url = h.url_for(qualified=True, controller='resource', action='read', id=change.pkg_id, resource_id = change.resource_id), resource_name = change.resource_name )|safe, new_desc = change.new_desc, old_desc = change.old_desc ) }} {% else %} {{ _('No fields were updated. See the metadata diff for more details.') }} {% endif %}