[Mpuls-commits] r4513 - base/trunk/mpulsweb/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri Jan 21 14:19:58 CET 2011


Author: torsten
Date: 2011-01-21 14:19:57 +0100 (Fri, 21 Jan 2011)
New Revision: 4513

Modified:
   base/trunk/mpulsweb/templates/switch_to_other_datasets.mako
Log:
* mpulsweb/templates/switch_to_other_datasets.mako: New code to render
links for switching datasets


Modified: base/trunk/mpulsweb/templates/switch_to_other_datasets.mako
===================================================================
--- base/trunk/mpulsweb/templates/switch_to_other_datasets.mako	2011-01-20 09:22:28 UTC (rev 4512)
+++ base/trunk/mpulsweb/templates/switch_to_other_datasets.mako	2011-01-21 13:19:57 UTC (rev 4513)
@@ -1,2 +1,17 @@
 ## -*- coding: utf-8 -*-
 ## On default no other datasets are defined.
+% if len(h.get_urls_for_other_datasets()) > 1:
+  <div class="menu">
+    <div class="actions">
+      <h1>${_('Switch dataset:')}</h1>
+      <ul>
+        % for l in h.get_urls_for_other_datasets():
+        <li>
+          <a href="${l[1]}">${l[0]}</a>
+        </li>
+        % endfor
+      </ul>
+    </div>
+  </div>
+% endif
+



More information about the Mpuls-commits mailing list