[Mpuls-commits] r4111 - jmd/trunk/jmdweb/templates

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Wed Nov 3 15:14:30 CET 2010


Author: torsten
Date: 2010-11-03 15:14:29 +0100 (Wed, 03 Nov 2010)
New Revision: 4111

Modified:
   jmd/trunk/jmdweb/templates/main.mako
Log:
* jmdweb/templates/main.mako:  Show demo notice if enabled.


Modified: jmd/trunk/jmdweb/templates/main.mako
===================================================================
--- jmd/trunk/jmdweb/templates/main.mako	2010-11-03 14:06:59 UTC (rev 4110)
+++ jmd/trunk/jmdweb/templates/main.mako	2010-11-03 14:14:29 UTC (rev 4111)
@@ -1,6 +1,11 @@
 ## -*- coding: utf-8 -*-
 <%inherit file="base.mako" />
 <%def name="buildStatusBar()">
+  % if g.mpuls_config.is_enabled('common', 'showdemonotice'):
+    <div class="widget container" id="demonotice">
+      ${h.literal(_('You are using a public demo installation of %s. Do not enter any real personal data! Please note, that all data will be deleted on server resets in regular intervals')) % h.get_app_title()}
+    </div>
+  % endif
   <div id="statusbar">
     ${_('statusbar_logininfo')}:
         <a href="${h.url_for(controller='/usersettings', action='showSettings',



More information about the Mpuls-commits mailing list