[ckan-changes] commit/ckan: rgrp: [templates/util][xs]: minor change to package listing so that lock symbol is shown only when not openly licensed and instructions text is clearer (many people had complained about 'Data not open').

Bitbucket commits-noreply at bitbucket.org
Thu May 12 20:09:46 UTC 2011


1 new changeset in ckan:

http://bitbucket.org/okfn/ckan/changeset/ec5f3ad524c8/
changeset:   r3078:ec5f3ad524c8
branch:      release-v1.4
user:        rgrp
date:        2011-05-12 21:39:39
summary:     [templates/util][xs]: minor change to package listing so that lock symbol is shown only when not openly licensed and instructions text is clearer (many people had complained about 'Data not open').
affected #:  1 file (310 bytes)

--- a/ckan/templates/_util.html	Thu May 12 14:23:45 2011 +0100
+++ b/ckan/templates/_util.html	Thu May 12 20:39:39 2011 +0100
@@ -49,36 +49,38 @@
 				${h.link_to(package.title or package.name, h.url_for(controller='package', action='read', id=package.name))}
 			</span>
 			
-			<p class="search_meta">
-    			<py:if test="package.resources">
-        			<ul class="package_formats">
-        			    <py:for each="resource in package.resources">
-        			        <py:if test="resource.format and not resource.format == ''">
-        				        <li>${resource.format}</li>
-                            </py:if>
-        				</py:for>
-        			</ul>
-        		</py:if>
-        		<ul class="openness">
-            		<py:choose>
-                        <li py:when="package.isopen() and package.resources">
-                            <a href="http://www.opendefinition.org/okd/" title="This package satisfies the Open Knowledge Definition.">
-                                <img src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" alt="[Open Data]" />
-                            </a>
-                        </li>
-                        <li py:when="package.isopen() and package.resources">
-                            <a href="http://www.opendefinition.org/okd/" title="This package satisfies the Open Knowledge Definition.">
-                                <img src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" alt="[Open Content]" />
-                            </a>
-                        </li>
-                        <li py:otherwise="">
-                            <span class="closed">
-                                ${h.icon('lock')} Data Not Open
-                            </span>
-                        </li>
-                    </py:choose>
-                </ul>
-            </p>
+			<div class="search_meta">
+        <py:if test="package.resources">
+          <ul class="package_formats">
+            <py:for each="resource in package.resources">
+              <py:if test="resource.format and not resource.format == ''">
+                <li>${resource.format}</li>
+              </py:if>
+            </py:for>
+          </ul>
+        </py:if>
+        <ul class="openness">
+          <py:if test="package.isopen()">
+            <li>
+              <a href="http://opendefinition.org/okd/" title="This package satisfies the Open Definition.">
+                  <img src="http://assets.okfn.org/images/ok_buttons/od_80x15_blue.png" alt="[Open Data]" />
+              </a>
+            </li>
+            <li>
+              <a href="http://opendefinition.org/okd/" title="This package satisfies the Open Definition.">
+                  <img src="http://assets.okfn.org/images/ok_buttons/oc_80x15_blue.png" alt="[Open Content]" />
+              </a>
+            </li>
+          </py:if>
+          <py:if test="not package.isopen()">
+            <li>
+              <span class="closed">
+                ${h.icon('lock')} Not Openly Licensed
+              </span>
+            </li>
+          </py:if>
+        </ul>
+      </div></div><div class="extract">
 			${h.markdown_extract(package.notes)}

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