[ARVADOS] updated: 4b3ada6aea3fe90aedfe610827eaf4e2c1442f03

git at public.curoverse.com git at public.curoverse.com
Mon Feb 15 13:34:16 EST 2016


Summary of changes:
 .../app/views/application/_projects_tree_menu.html.erb         | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)

       via  4b3ada6aea3fe90aedfe610827eaf4e2c1442f03 (commit)
      from  b3bb4cdff0b10f42624b67ae19c03f1edfcecab0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 4b3ada6aea3fe90aedfe610827eaf4e2c1442f03
Author: radhika <radhika at curoverse.com>
Date:   Mon Feb 15 13:33:43 2016 -0500

    8286: include favorites and top-level my projects in projects drowdown.

diff --git a/apps/workbench/app/views/application/_projects_tree_menu.html.erb b/apps/workbench/app/views/application/_projects_tree_menu.html.erb
index 6e116dd..cf27965 100644
--- a/apps/workbench/app/views/application/_projects_tree_menu.html.erb
+++ b/apps/workbench/app/views/application/_projects_tree_menu.html.erb
@@ -1,18 +1,16 @@
+<% starred_projects = my_starred_projects current_user%>
+<% if starred_projects.andand.any? %>
 <li role="presentation" class="dropdown-header">
   My favorite projects
 </li>
-<li>
-  <%= project_link_to.call({object: current_user, depth: 0}) do %>
-    <span style="padding-left: 0">Home</span>
-  <% end %>
-</li>
-<% (my_starred_projects current_user).each do |pnode| %>
+<% (starred_projects).each do |pnode| %>
   <li>
     <%= project_link_to.call({object: pnode, depth: 0}) do%>
       <span style="padding-left: 0em"></span><%= pnode[:name] %>
     <% end %>
   </li>
 <% end %>
+<% end %>
 
 <li role="presentation" class="dropdown-header">
   My projects

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list