[Rt-commit] r18967 - in rt/3.8/trunk: share/html

sartak at bestpractical.com sartak at bestpractical.com
Fri Mar 27 16:45:59 EDT 2009


Author: sartak
Date: Fri Mar 27 16:45:58 2009
New Revision: 18967

Modified:
   rt/3.8/trunk/   (props changed)
   rt/3.8/trunk/share/html/index.html

Log:
 r81621 at onn:  sartak | 2009-03-27 16:45:51 -0400
 Limit to seven dashboards


Modified: rt/3.8/trunk/share/html/index.html
==============================================================================
--- rt/3.8/trunk/share/html/index.html	(original)
+++ rt/3.8/trunk/share/html/index.html	Fri Mar 27 16:45:58 2009
@@ -141,6 +141,13 @@
 
 my @dashboards = $m->comp("/Dashboards/Elements/ListOfDashboards");
 
+# limit to a maximum of 7 dashboards
+my $more = 0;
+if (@dashboards > 7) {
+    $more = 1;
+    splice @dashboards, 7;
+}
+
 my $position = 0;
 my $tabs = {
     map {
@@ -154,6 +161,14 @@
     @dashboards
 };
 
+if ($more) {
+    $tabs->{"D-more"} = {
+        title => loc('more'),
+        path => 'Dashboards/index.html',
+
+    }
+}
+
 </%init>
 
 %# --></body></html>


More information about the Rt-commit mailing list