]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3972 I must now click on the user name to display the user panel
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Mon, 3 Dec 2012 15:45:18 +0000 (16:45 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Tue, 4 Dec 2012 14:35:01 +0000 (15:35 +0100)
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_user_panel.html.erb

index 3c926c11a459dc5c1fb26315e5897ec954497d4b..43ea4a115b7f60dc939f79bbf2dcdbdbfdba2a80 100644 (file)
@@ -5,11 +5,10 @@
   var shouldUpdateRecentHistory = true;
 </script>
 
-<li onmouseover="if (sonarRecentHistory && shouldUpdateRecentHistory) { sonarRecentHistory.populateRecentHistoryPanel(); shouldUpdateRecentHistory = false;}; $j('#user-panel').show();" 
-    onmouseout="$j('#user-panel').hide(); shouldUpdateRecentHistory = true;">
-  <span class="link-more"><%= current_user ? current_user.name(true) : message('layout.user_panel.me') -%></span>
+<li>
+  <a href="#" onclick="if (sonarRecentHistory) { sonarRecentHistory.populateRecentHistoryPanel(); }; $j('#user-panel').toggle(); return false;" class="link-more"><%= current_user ? current_user.name(true) : message('layout.user_panel.me') -%></a>
   
-  <div id="user-panel" style="display: none">
+  <div id="user-panel" style="display: none" onmouseout="$j(this).hide();" onmouseover="$j(this).show();">
     <div id="user-details">
       <% if current_user %>
         <b><%= current_user.name(true) -%></b>