[ckan-changes] commit/ckanext-pdeu: pudo: move topics into banner, cache images

Bitbucket commits-noreply at bitbucket.org
Mon Jun 13 08:55:54 UTC 2011


1 new changeset in ckanext-pdeu:

http://bitbucket.org/okfn/ckanext-pdeu/changeset/5b35c5b5ea5a/
changeset:   5b35c5b5ea5a
user:        pudo
date:        2011-06-13 10:55:44
summary:     move topics into banner, cache images
affected #:  2 files (320 bytes)

--- a/ckanext/pdeu/controllers.py	Sun Jun 12 21:50:59 2011 +0200
+++ b/ckanext/pdeu/controllers.py	Mon Jun 13 10:55:44 2011 +0200
@@ -101,4 +101,7 @@
             ft['properties']['packages'] = values[code] if code in values else 0
 
         response.content_type = 'application/json'
+        response.pragma = None 
+        response.cache_control = 'public; max-age: 3600'
+        response.cache_expires(seconds=3600)
         return json.dumps(o)


--- a/ckanext/pdeu/theme/templates/home/index.html	Sun Jun 12 21:50:59 2011 +0200
+++ b/ckanext/pdeu/theme/templates/home/index.html	Mon Jun 13 10:55:44 2011 +0200
@@ -15,7 +15,7 @@
       }
 
       .banner {
-        margin-top: 3em;
+        margin-top: 2em;
         background-color: #225092;
         background-image: -webkit-gradient(linear, left top, left bottom, from(#225092), to(#183661)); 
         background-image: -webkit-linear-gradient(top, #225092, #183661); 
@@ -30,13 +30,18 @@
 
       }
 
-      .banner * {
+      .banner *, .banner ul li {
         color: #fff;
       }
 
+      .banner a {
+        color: #fff;
+        font-weight: bold;
+      }
+
       .banner h1 {
         padding-left: 1em;
-        padding-top: 2em;
+        padding-top: 1em;
       }
 
       .banner #map {
@@ -84,32 +89,25 @@
         <form action="/package" method="GET"><input name="q" placeholder="Find datasets" /></form>
+        <div class="span-6">
+          <ul class="facet-options">
+            <li py:for="name, count in h.facet_items(c, 'groups', limit=9)[0::2]">
+              <a href="/package?groups=${name}">${h.group_name_to_title(name)}</a> (${count})
+            </li>
+          </ul>
+        </div>
+        <div class="span-6">
+          <ul class="facet-options">
+            <li py:for="name, count in h.facet_items(c, 'groups', limit=9)[1::2]">
+              <a href="/package?groups=${name}">${h.group_name_to_title(name)}</a> (${count})
+            </li>
+          </ul>
+        </div>
+
       </div></div><div id="homepage" class="below container">
-      <h3>Topics</h3>
-      <div class="span-8">
-        <ul class="facet-options">
-          <li py:for="name, count in h.facet_items(c, 'groups', limit=9)[0::3]">
-            <a href="/package?groups=${name}">${h.group_name_to_title(name)}</a> (${count})
-          </li>
-        </ul>
-      </div>
-      <div class="span-8">
-        <ul class="facet-options">
-          <li py:for="name, count in h.facet_items(c, 'groups', limit=9)[1::3]">
-            <a href="/package?groups=${name}">${h.group_name_to_title(name)}</a> (${count})
-          </li>
-        </ul>
-      </div>
-      <div class="span-8 last">
-        <ul class="facet-options">
-          <li py:for="name, count in h.facet_items(c, 'groups', limit=9)[3::3]">
-            <a href="/package?groups=${name}">${h.group_name_to_title(name)}</a> (${count})
-          </li>
-        </ul>
-      </div></div></div><xi:include href="layout.html" />

Repository URL: https://bitbucket.org/okfn/ckanext-pdeu/

--

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