/
description.html
31 lines (31 loc) · 1.25 KB
/
description.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<li>
<p>
{% if ah.method == "change" %}
{{ _('Updated description of <a href="{pkg_url}">{dataset}</a> from
<br class="line-height2"><blockquote>{old_desc}</blockquote>
to <br class="line-height2"><blockquote>{new_desc}
</blockquote>').format(
pkg_url = h.url_for(controller='dataset', action='read', id=ah.pkg_id),
dataset = ah.title,
old_desc = ah.old_desc,
new_desc = ah.new_desc
)|safe }}
{% elif ah.method == "add" %}
{{ _('Updated description of <a href="{pkg_url}">{dataset}</a>
to <br class="line-height2"><blockquote>{new_desc}
</blockquote>').format(
pkg_url = h.url_for(controller='dataset', action='read', id=ah.pkg_id),
dataset = ah.title,
new_desc = ah.new_desc
)|safe }}
{% elif ah.method == "remove" %}
{{ _('Removed description from <a href="{pkg_url}">{dataset}
</a>').format(
pkg_url = h.url_for(controller='dataset', action='read', id=ah.pkg_id),
dataset = ah.title
)|safe }}
{% else %}
{{ _('No fields were updated. See the metadata diff for more details.') }}
{% endif %}
</p>
</li>