From f022f54243994bcc6bd4ecad720320d09da9cd0d Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 4 Jan 2010 09:30:55 +0000 Subject: [PATCH] update Fai package -Show a message if only the first 200 entries were shown. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14995 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiPackageEntry.inc | 2 ++ gosa-plugins/fai/admin/fai/faiPackageEntry.tpl | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/gosa-plugins/fai/admin/fai/class_faiPackageEntry.inc b/gosa-plugins/fai/admin/fai/class_faiPackageEntry.inc index f86f89a96..794a8d344 100644 --- a/gosa-plugins/fai/admin/fai/class_faiPackageEntry.inc +++ b/gosa-plugins/fai/admin/fai/class_faiPackageEntry.inc @@ -130,6 +130,8 @@ class faiPackageEntry extends plugin "attach" => "style='border-right:0px;text-align:left;'"))); } + $smarty->assign("max_entries", (count($this->pkgs) >=200)); + $smarty->assign("Section_boxes" , $Section_boxes); $smarty->assign("searchStrPKG" , $this->searchStrPKG); $smarty->assign("faihead" , ""); diff --git a/gosa-plugins/fai/admin/fai/faiPackageEntry.tpl b/gosa-plugins/fai/admin/fai/faiPackageEntry.tpl index 44cbbf801..f8958039a 100644 --- a/gosa-plugins/fai/admin/fai/faiPackageEntry.tpl +++ b/gosa-plugins/fai/admin/fai/faiPackageEntry.tpl @@ -11,6 +11,12 @@
+ {if $max_entries} +
+ + {t}The search returned too many results, only the first 200 entries are shown.{/t} +
+ {/if}
{$failist}
-- 2.30.2