Skip to content

Commit

Permalink
Merge pull request #2 from JiscSD/add_hyperlinks_in_taxonomy
Browse files Browse the repository at this point in the history
Updating features as originally on DKAN there are such links
  • Loading branch information
paulchauch authored Sep 15, 2022
2 parents ab14052 + 58b1b62 commit 00e49bb
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<th scope="row" class="dataset-label">{{ _("Year") }}</th>
<td class="dataset-details">
{% for year in pkg_dict.years %}
{{ year }} <br>
<a href="/dataset/?vocab_Year={{year}}">{{ year }}</a> <br>
{% endfor %}
</td>
</tr>
Expand All @@ -24,7 +24,7 @@
<th scope="row" class="dataset-label">{{ _("Topics") }}</th>
<td class="dataset-details">
{% for tp in pkg_dict.topics %}
{{ tp }} <br>
<a href="/dataset/?vocab_Topics={{tp}}">{{ tp }}</a> <br>
{% endfor %}
</td>
</tr>
Expand All @@ -34,7 +34,7 @@
<th scope="row" class="dataset-label">{{ _("Units") }}</th>
<td class="dataset-details">
{% for unit in pkg_dict.units %}
{{ unit }} <br>
<a href="/dataset/?vocab_Unit={{unit}}">{{ unit }}</a> <br>
{% endfor %}
</td>
</tr>
Expand All @@ -44,7 +44,7 @@
<th scope="row" class="dataset-label">{{ _("Geographic Layer") }}</th>
<td class="dataset-details">
{% for at in pkg_dict.area_types %}
{{ at }} <br>
<a href="/dataset/?vocab_Area_type={{at}}">{{ at }}</a> <br>
{% endfor %}
</td>
</tr>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{% ckan_extends %}

{% block heading %}
<h1 class="heading">

{% if organization.state == 'deleted' %}
{{ organization.title or organization.name }}[{{ _('Deleted') }}]
{% else %}
<a href="/organization/{{organization.name}}">{{ organization.title or organization.name }}</a>
{% endif %}
</h1>
{% endblock %}
{% block description %}
{% if organization.description %}
<p class="description">
{{ h.markdown_extract(organization.description, 180) }}
</p>
<p class="read-more">
{% link_for _('read more'), controller='organization', action='about', id=organization.name %}
</p>
{% else %}
<p class="empty"></p>
{% endif %}
{% endblock %}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Versions should comply with PEP440. For a discussion on single-sourcing
# the version across setup.py and the project code, see
# http://packaging.python.org/en/latest/tutorial.html#version
version='0.0.2',
version='0.0.3',

description='''CKAN plugin for the UKDS CKAN platform''',
long_description=long_description,
Expand Down

0 comments on commit 00e49bb

Please sign in to comment.