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

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


Author: torsten
Date: 2010-11-03 15:06:59 +0100 (Wed, 03 Nov 2010)
New Revision: 4110

Modified:
   base/trunk/mpulsweb/templates/main.mako
Log:
Show demo notice if server is run as demo server. showdemonotice is 1



Modified: base/trunk/mpulsweb/templates/main.mako
===================================================================
--- base/trunk/mpulsweb/templates/main.mako	2010-11-03 14:05:42 UTC (rev 4109)
+++ base/trunk/mpulsweb/templates/main.mako	2010-11-03 14:06:59 UTC (rev 4110)
@@ -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