From 51712a8ee47eea0f0422c16b1efd189b6122f0b5 Mon Sep 17 00:00:00 2001 From: Fabrice Bellingard Date: Thu, 29 Nov 2012 15:38:59 +0100 Subject: [PATCH] SONAR-3972 Improve the user panel - Add link highlighting - Remove the useless "Clear" action - Add cursor pointer on the title --- .../main/webapp/javascripts/recent-history.js | 1 - .../src/main/webapp/stylesheets/layout.css | 18 ++++++++++++++++++ .../src/main/webapp/stylesheets/style.css | 1 + 3 files changed, 19 insertions(+), 1 deletion(-) diff --git a/sonar-server/src/main/webapp/javascripts/recent-history.js b/sonar-server/src/main/webapp/javascripts/recent-history.js index 6d4da0f0635..9368502d870 100644 --- a/sonar-server/src/main/webapp/javascripts/recent-history.js +++ b/sonar-server/src/main/webapp/javascripts/recent-history.js @@ -66,7 +66,6 @@ Sonar.RecentHistory.prototype.populateRecentHistoryPanel = function () { + resource['name'] + ''); }); - historyLinksList.append('
  • ' + this.translations['clear'] + '
  • '); $j("#sonar-recent-history").show(); } }; diff --git a/sonar-server/src/main/webapp/stylesheets/layout.css b/sonar-server/src/main/webapp/stylesheets/layout.css index 85d36ff3970..7ff60d9e5b1 100644 --- a/sonar-server/src/main/webapp/stylesheets/layout.css +++ b/sonar-server/src/main/webapp/stylesheets/layout.css @@ -178,6 +178,24 @@ body, a { border-top: 1px solid #ccc; } +#sonar-recent-history li { + list-style-type: none !important; + padding: 2px 8px 2px 0px !important; + cursor: pointer !important; +} + +#sonar-recent-history li:hover { + background-color: #4b9fd5 !important; +} + +#sonar-recent-history li:hover a { + color: #fff !important; +} + +#sonar-recent-history a { + text-decoration: none !important; +} + #nonav { text-align: left; margin: 50px 180px 0; diff --git a/sonar-server/src/main/webapp/stylesheets/style.css b/sonar-server/src/main/webapp/stylesheets/style.css index 9a8640bc37a..698d1165c0e 100644 --- a/sonar-server/src/main/webapp/stylesheets/style.css +++ b/sonar-server/src/main/webapp/stylesheets/style.css @@ -2101,6 +2101,7 @@ table.nowrap td, td.nowrap, th.nowrap { background-repeat: no-repeat; padding-right: 20px; background-position: right center; + cursor: pointer; } .dropdown { -- 2.39.5