[ckan-changes] commit/ckan: amercader: [ui] #1456 Show resource description instead of name if both present

Bitbucket commits-noreply at bitbucket.org
Wed Nov 9 18:11:48 UTC 2011


1 new commit in ckan:


https://bitbucket.org/okfn/ckan/changeset/939e0e0809c1/
changeset:   939e0e0809c1
user:        amercader
date:        2011-11-09 19:11:22
summary:     [ui] #1456 Show resource description instead of name if both present
affected #:  1 file

diff -r d27717cd3dff141b7c83c9608b73503e815af52b -r 939e0e0809c1a04b6d0d283559294b0c847ae1a4 ckan/templates/package/read_core.html
--- a/ckan/templates/package/read_core.html
+++ b/ckan/templates/package/read_core.html
@@ -25,7 +25,7 @@
             <td><a href="${res.get('url', '')}" rel="dcat:accessURL" target="_blank"><py:if test="res.get('name') or res.get('description')">
-                  <span property="rdfs:label">${res.get('name') or res.get('description')}</span>
+                  <span property="rdfs:label">${res.get('description') or res.get('name')}</span></py:if><py:if test="not(res.get('name') or res.get('description'))"><em>(none)</em>

Repository URL: https://bitbucket.org/okfn/ckan/

--

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