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

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Feb 2 16:54:57 CET 2011


Author: torsten
Date: 2011-02-02 16:54:57 +0100 (Wed, 02 Feb 2011)
New Revision: 4557

Modified:
   base/trunk/mpulsweb/templates/switch_to_other_datasets.mako
Log:
* mpulsweb/templates/switch_to_other_datasets.mako: Only show links to
	switch between datasets if there is more than one dataset avaliable


Modified: base/trunk/mpulsweb/templates/switch_to_other_datasets.mako
===================================================================
--- base/trunk/mpulsweb/templates/switch_to_other_datasets.mako	2011-02-02 15:50:14 UTC (rev 4556)
+++ base/trunk/mpulsweb/templates/switch_to_other_datasets.mako	2011-02-02 15:54:57 UTC (rev 4557)
@@ -1,6 +1,6 @@
 ## -*- coding: utf-8 -*-
 ## On default no other datasets are defined.
-% if len(h.get_urls_for_other_datasets()) > 1:
+% if h.get_num_of_other_datasets() > 1:
   <div class="menu switchdataset">
     <div class="actions">
       <h1>${_('Switch dataset:')}</h1>



More information about the Mpuls-commits mailing list