[Mpuls-commits] r5774 - base/trunk/mpulsweb/templates/meta
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Jan 18 15:05:13 CET 2012
Author: torsten
Date: 2012-01-18 15:05:12 +0100 (Wed, 18 Jan 2012)
New Revision: 5774
Modified:
base/trunk/mpulsweb/templates/meta/search.mako
Log:
Issue2475: Fix Dialog and show better readable number of raiming searches.
Modified: base/trunk/mpulsweb/templates/meta/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/meta/search.mako 2012-01-17 10:38:17 UTC (rev 5773)
+++ base/trunk/mpulsweb/templates/meta/search.mako 2012-01-18 14:05:12 UTC (rev 5774)
@@ -2,10 +2,10 @@
<%inherit file="../casemanagement/main.mako" />
<%! import mpulsweb.lib.helper.filters as F %>
<h1>${_('Meta search')}</h1>
-% if c.remaining_searches < 6:
+% if c.remaining_searches < 5:
<div class="widget dialog warning-box">
<h1><img width="48" height="48" alt="" src="/images/icons/info/info.png">${_('Attention')}!</h1>
- <p>${h.literal(_('To prevent misuse of the meta-search <u>the meta-account will be disabled after after <strong>%s</strong> more unsuccessful searches</u>. Counter will be reset on successful search or on linking a case.') % c.remaining_searches)}</p>
+ <p>${h.literal(_('To prevent misuse of the meta-search <u>the meta-account will be disabled after after <strong>%s</strong> more unsuccessful searches</u>. Counter will be reset on successful search or on linking a case.') % str(c.remaining_searches + 1))}</p>
</div>
% endif
<form name="metasearch" action="${h.url_for(controller='meta', action='searchAction')}" method="POST">
More information about the Mpuls-commits
mailing list