[ckan-changes] commit/ckanextiati: amercader: Nicer resources table if preview is disabled

Bitbucket commits-noreply at bitbucket.org
Fri Oct 21 09:15:11 UTC 2011


1 new changeset in ckanextiati:

http://bitbucket.org/okfn/ckanextiati/changeset/7bb975816311/
changeset:   7bb975816311
user:        amercader
date:        2011-10-21 11:14:56
summary:     Nicer resources table if preview is disabled
affected #:  1 file (-1 bytes)

--- a/ckanext/iati/templates/package/read_core.html	Wed Oct 19 18:55:20 2011 +0100
+++ b/ckanext/iati/templates/package/read_core.html	Fri Oct 21 10:14:56 2011 +0100
@@ -37,7 +37,7 @@
 
     <py:choose test=""><table py:when="c.pkg.resources" width="100%">
-        <tr><th>URL</th><th>Format</th><th>Preview</th></tr>
+        <tr><th>URL</th><th>Format</th><th py:if="config.get('iati.preview_service','')">Preview</th></tr><py:for each="res in c.pkg.resources"><tr><td><a href="${res.url}" target="_blank">Download</a></td>

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