[Mpuls-commits] r1780 - wasko/branches/2.0/mpulsweb/templates/dialogs

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Thu Feb 25 15:10:40 CET 2010


Author: torsten
Date: 2010-02-25 15:10:40 +0100 (Thu, 25 Feb 2010)
New Revision: 1780

Modified:
   wasko/branches/2.0/mpulsweb/templates/dialogs/confirm.mako
Log:
* mpulsweb/templates/dialogs/confirm.mako: Added some fallback vars to
ensure that this dialog also works with old c-vars.


Modified: wasko/branches/2.0/mpulsweb/templates/dialogs/confirm.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/dialogs/confirm.mako	2010-02-25 13:32:18 UTC (rev 1779)
+++ wasko/branches/2.0/mpulsweb/templates/dialogs/confirm.mako	2010-02-25 14:10:40 UTC (rev 1780)
@@ -1,8 +1,8 @@
 ## -*- coding: utf-8 -*-
 <%!  import mpulsweb.lib.helper.filters as F %>
 <div class="dialog" />
-<h1><img src="/images/question.png" alt="achtung"/>${c.dialog_title}</h1>
-<p>${c.dialog_text}</p>
+<h1><img src="/images/question.png" alt="achtung"/>${c.dialog_title or c.confirm_for}</h1>
+<p>${c.dialog_text or c.question}</p>
 <a class="button" href="${c.url_yes}">${_('dialog_header_confirm_option_yes')}</a>
 <a class="button" href="${c.url_no}">${_('dialog_header_confirm_option_no')}</a>
 </div>



More information about the Mpuls-commits mailing list