[Mpuls-commits] r5373 - base/trunk/mpulsweb/templates/meta

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Tue Sep 20 11:35:56 CEST 2011


Author: torsten
Date: 2011-09-20 11:35:55 +0200 (Tue, 20 Sep 2011)
New Revision: 5373

Modified:
   base/trunk/mpulsweb/templates/meta/search.mako
Log:
Show warning dialog if there are less than 6 remaining searches before
deactivating the meta-user.


Modified: base/trunk/mpulsweb/templates/meta/search.mako
===================================================================
--- base/trunk/mpulsweb/templates/meta/search.mako	2011-09-20 09:34:15 UTC (rev 5372)
+++ base/trunk/mpulsweb/templates/meta/search.mako	2011-09-20 09:35:55 UTC (rev 5373)
@@ -2,6 +2,12 @@
 <%inherit file="../casemanagement/main.mako" />
 <%!  import mpulsweb.lib.helper.filters as F %>
 <h1>${_('Meta search')}</h1>
+% if c.remaining_searches < 6:
+  <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>
+  </div>
+% endif
 <form name="metasearch" action="${h.url_for(controller='meta', action='searchAction')}" method="POST">
   <div class="widget container">
     <table>



More information about the Mpuls-commits mailing list