[Mpuls-commits] r1819 - wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Thu Feb 25 18:06:56 CET 2010
Author: torsten
Date: 2010-02-25 18:06:54 +0100 (Thu, 25 Feb 2010)
New Revision: 1819
Modified:
wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako
wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako
Log:
Fixed templates
Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako 2010-02-25 16:55:49 UTC (rev 1818)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/confirm_markanonymize.mako 2010-02-25 17:06:54 UTC (rev 1819)
@@ -1,8 +1,15 @@
## -*- coding: utf-8 -*-
<%inherit file="/casemanagement/main.mako" />
+<%
+ case = session.get('case')
+%>
<%def name="buildNavipath()">
${parent.buildNavipath()}
- <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
+ %if case:
+ <li><a href="/case/select/${case.id}/1">${_('cm_np_select')}</a></li>
+ %else:
+ <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+ %endif
<li><a href="#">${_('cm_np_anonymize')}</a></li>
</%def>
<%include file="/dialogs/confirm.mako" />
Modified: wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako
===================================================================
--- wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako 2010-02-25 16:55:49 UTC (rev 1818)
+++ wasko/branches/2.0/mpulsweb/templates/casemanagement/dialogs/success_markanonymize.mako 2010-02-25 17:06:54 UTC (rev 1819)
@@ -1,8 +1,15 @@
## -*- coding: utf-8 -*-
<%inherit file="/casemanagement/main.mako" />
+<%
+ case = session.get('case')
+%>
<%def name="buildNavipath()">
${parent.buildNavipath()}
- <li><a href="/case/select/${session.get('case').id}/1">${_('cm_np_select')}</a></li>
+ %if case:
+ <li><a href="/case/select/${case.id}/1">${_('cm_np_select')}</a></li>
+ %else:
+ <li><a href="/case_overview">${_('cm_np_overview')}</a></li>
+ %endif
<li><a href="#">${_('cm_np_anonymize')}</a></li>
</%def>
<%include file="/dialogs/success.mako" />
More information about the Mpuls-commits
mailing list