8183: display top three levels of projects in menu, improve message when there are...
[arvados.git] / apps / workbench / app / views / application / _projects_tree_menu.html.erb
index 10a951a66da8fcb09a24c22396f1673af279ff87..69f97e404aab589eb3575c59068841b51a3cf8a2 100644 (file)
     <% end %>
   </li>
 <% end %>
-<% if my_tree[1] and my_tree[1] > my_tree[0].size %>
+<% if my_tree[1] or my_tree[0].size > 200 %>
 <li role="presentation" class="dropdown-header">
-  Showing <%= my_tree[0].size %> of your projects out of <%= my_tree[1] %> total projects.
+  Some projects have been omitted.
+</li>
+<% elsif my_tree[2] %>
+<li role="presentation" class="dropdown-header">
+  Showing top three levels of your projects.
 </li>
 <% end %>