Skip to content

Commit ccde0fa

Browse files
Rename 'Created' to 'Published' on dataset detail page
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e0d8e81 commit ccde0fa

1 file changed

Lines changed: 72 additions & 0 deletions

File tree

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
{% ckan_extends %}
2+
3+
{% block package_additional_info %}
4+
{% if pkg_dict.url %}
5+
<tr>
6+
<th scope="row" class="dataset-label">{{ _('Source') }}</th>
7+
{% if h.is_url(pkg_dict.url) %}
8+
<td class="dataset-details" property="foaf:homepage">
9+
<a href="{{ pkg_dict.url }}" rel="foaf:homepage" target="_blank">
10+
{{ pkg_dict.url }}
11+
</a>
12+
</td>
13+
{% else %}
14+
<td class="dataset-details" property="foaf:homepage">{{ pkg_dict.url }}</td>
15+
{% endif %}
16+
</tr>
17+
{% endif %}
18+
19+
{% if pkg_dict.author_email %}
20+
<tr>
21+
<th scope="row" class="dataset-label">{{ _("Author") }}</th>
22+
<td class="dataset-details" property="dc:creator">{{ h.mail_to(email_address=pkg_dict.author_email, name=pkg_dict.author) }}</td>
23+
</tr>
24+
{% elif pkg_dict.author %}
25+
<tr>
26+
<th scope="row" class="dataset-label">{{ _("Author") }}</th>
27+
<td class="dataset-details" property="dc:creator">{{ pkg_dict.author }}</td>
28+
</tr>
29+
{% endif %}
30+
31+
{% if pkg_dict.maintainer_email %}
32+
<tr>
33+
<th scope="row" class="dataset-label">{{ _('Maintainer') }}</th>
34+
<td class="dataset-details" property="dc:contributor">{{ h.mail_to(email_address=pkg_dict.maintainer_email, name=pkg_dict.maintainer) }}</td>
35+
</tr>
36+
{% elif pkg_dict.maintainer %}
37+
<tr>
38+
<th scope="row" class="dataset-label">{{ _('Maintainer') }}</th>
39+
<td class="dataset-details" property="dc:contributor">{{ pkg_dict.maintainer }}</td>
40+
</tr>
41+
{% endif %}
42+
43+
{% if pkg_dict.version %}
44+
<tr>
45+
<th scope="row" class="dataset-label">{{ _("Version") }}</th>
46+
<td class="dataset-details">{{ pkg_dict.version }}</td>
47+
</tr>
48+
{% endif %}
49+
50+
{% if h.check_access('package_update',{'id':pkg_dict.id}) %}
51+
<tr>
52+
<th scope="row" class="dataset-label">{{ _("State") }}</th>
53+
<td class="dataset-details">{{ _(pkg_dict.state) }}</td>
54+
</tr>
55+
{% endif %}
56+
{% if pkg_dict.metadata_modified %}
57+
<tr>
58+
<th scope="row" class="dataset-label">{{ _("Last Updated") }}</th>
59+
<td class="dataset-details">
60+
{% snippet 'snippets/local_friendly_datetime.html', datetime_obj=pkg_dict.metadata_modified %}
61+
</td>
62+
</tr>
63+
{% endif %}
64+
{% if pkg_dict.metadata_created %}
65+
<tr>
66+
<th scope="row" class="dataset-label">{{ _("Published") }}</th>
67+
<td class="dataset-details">
68+
{% snippet 'snippets/local_friendly_datetime.html', datetime_obj=pkg_dict.metadata_created %}
69+
</td>
70+
</tr>
71+
{% endif %}
72+
{% endblock %}

0 commit comments

Comments
 (0)