[ckan-changes] commit/ckanextiati: amercader: Remove extra filter on preview links
Bitbucket
commits-noreply at bitbucket.org
Fri Jul 15 10:49:40 UTC 2011
1 new changeset in ckanextiati:
http://bitbucket.org/okfn/ckanextiati/changeset/9a6727254f56/
changeset: 9a6727254f56
user: amercader
date: 2011-07-15 12:48:34
summary: Remove extra filter on preview links
affected #: 2 files (127 bytes)
--- a/ckanext/iati/templates/_util_local.html Fri Jul 01 10:26:54 2011 +0100
+++ b/ckanext/iati/templates/_util_local.html Fri Jul 15 11:48:34 2011 +0100
@@ -52,7 +52,7 @@
${h.link_to('View Metadata', h.url_for(controller='package', action='read', id=package.name))}
<py:if test="package.resources">
| ${h.link_to('Download file', package.resources[0].url,target='_blank')}
- <py:if test="'iati:preview:%s' % package.resources[0].id in package.extras.keys() and config.get('iati.preview_service','')">
+ <py:if test="config.get('iati.preview_service','')">
| ${h.link_to('Preview file', config.get('iati.preview_service') % package.resources[0].url, target='_blank')}
</py:if></py:if>
--- a/ckanext/iati/templates/package/read_core.html Fri Jul 01 10:26:54 2011 +0100
+++ b/ckanext/iati/templates/package/read_core.html Fri Jul 15 11:48:34 2011 +0100
@@ -42,7 +42,7 @@
<tr><td><a href="${res.url}" target="_blank">Download</a></td><td>${res.format}</td>
- <td py:if="'iati:preview:%s' % res.id in c.pkg.extras.keys() and config.get('iati.preview_service','')">
+ <td py:if="config.get('iati.preview_service','')">
${h.link_to('preview', config.get('iati.preview_service') % res.url, target='_blank')}
</td></tr>
Repository URL: https://bitbucket.org/okfn/ckanextiati/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list