[ARVADOS] created: 0bff4d895d0ce312524c9d689923c9590f81f36f

git at public.curoverse.com git at public.curoverse.com
Mon Apr 13 23:34:28 EDT 2015


        at  0bff4d895d0ce312524c9d689923c9590f81f36f (commit)


commit 0bff4d895d0ce312524c9d689923c9590f81f36f
Author: Radhika Chippada <radhika at curoverse.com>
Date:   Mon Apr 13 23:34:00 2015 -0400

    5647: add a hover dropdown login item.

diff --git a/apps/workbench/app/assets/stylesheets/application.css.scss b/apps/workbench/app/assets/stylesheets/application.css.scss
index ec7eee4..bb57d4b 100644
--- a/apps/workbench/app/assets/stylesheets/application.css.scss
+++ b/apps/workbench/app/assets/stylesheets/application.css.scss
@@ -296,3 +296,7 @@ span.editable-textile {
 ul.nav.nav-tabs {
     font-size: 90%
 }
+
+.hover-dropdown:hover .dropdown-menu {
+  display: block;
+}
diff --git a/apps/workbench/app/views/layouts/body.html.erb b/apps/workbench/app/views/layouts/body.html.erb
index 97418b1..da8498c 100644
--- a/apps/workbench/app/views/layouts/body.html.erb
+++ b/apps/workbench/app/views/layouts/body.html.erb
@@ -111,7 +111,14 @@
               </li>
             <% end %>
           <% else %>
-            <li><a href="<%= arvados_api_client.arvados_login_url(return_to: root_url) %>">Log in</a></li>
+            <li class="dropdown hover-dropdown login-menu">
+              <a href="<%= arvados_api_client.arvados_login_url(return_to: root_url) %>">Log in</a>
+              <ul class="dropdown-menu">
+                <li>
+                  <a href="<%= arvados_api_client.arvados_login_url(return_to: root_url) %>">Log-in or register with any Google account</a>
+                </li>
+              </ul>
+            </li>
           <% end %>
 
           <li class="dropdown help-menu">

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


hooks/post-receive
-- 




More information about the arvados-commits mailing list