aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-11-06 14:54:03 +0100
committerStas Vilchik <vilchiks@gmail.com>2014-11-06 15:03:08 +0100
commitc5cabe81c90831414996dd779dbb07f7e0c9df6d (patch)
treeb8d216ecfecf2c817c41ee4dba122802b16e61de
parent7c24d094cb9da436b686c947ee98ea6d9ecd2db9 (diff)
downloadsonarqube-c5cabe81c90831414996dd779dbb07f7e0c9df6d.tar.gz
sonarqube-c5cabe81c90831414996dd779dbb07f7e0c9df6d.zip
SONAR-5718 Fix display of the issues help
-rw-r--r--server/sonar-web/src/main/coffee/issues/app.coffee3
-rw-r--r--server/sonar-web/src/main/hbs/issues/issues-help.hbs22
-rw-r--r--server/sonar-web/src/main/less/ui.less16
3 files changed, 29 insertions, 12 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/app.coffee b/server/sonar-web/src/main/coffee/issues/app.coffee
index e81d13af4dc..03c43575288 100644
--- a/server/sonar-web/src/main/coffee/issues/app.coffee
+++ b/server/sonar-web/src/main/coffee/issues/app.coffee
@@ -110,7 +110,8 @@ requirejs [
App.addInitializer ->
@helpView = new HelpView app: @
- key '?,/', => @helpView.render()
+ $(window).on 'keypress', (e) =>
+ @helpView.render() if e.keyCode == 63
App.addInitializer ->
diff --git a/server/sonar-web/src/main/hbs/issues/issues-help.hbs b/server/sonar-web/src/main/hbs/issues/issues-help.hbs
index 63fb4600a7e..b6d52ecd203 100644
--- a/server/sonar-web/src/main/hbs/issues/issues-help.hbs
+++ b/server/sonar-web/src/main/hbs/issues/issues-help.hbs
@@ -6,20 +6,20 @@
<h3>Shortcuts</h3>
<p>To control results</p>
<ul>
- <li>&uparrow; &darr; &nbsp;&nbsp; to navigate between issues</li>
- <li>&rarr; &nbsp;&nbsp; to go from the list of issues to the source code</li>
- <li>&larr; &nbsp;&nbsp; to return back to the list</li>
+ <li><span class="shortcut-button">&uparrow;</span> <span class="shortcut-button">&darr;</span> &nbsp;&nbsp; to navigate between issues</li>
+ <li><span class="shortcut-button">&rarr;</span> &nbsp;&nbsp; to go from the list of issues to the source code</li>
+ <li><span class="shortcut-button">&larr;</span> &nbsp;&nbsp; to return back to the list</li>
</ul>
<p>To control selected issue</p>
<ul>
- <li>c &nbsp;&nbsp; to confirm</li>
- <li>u &nbsp;&nbsp; to unconfirm</li>
- <li>r &nbsp;&nbsp; to resolve/reopen</li>
- <li>f &nbsp;&nbsp; to mark as false-positive</li>
- <li>a &nbsp;&nbsp; to assign</li>
- <li>m &nbsp;&nbsp; to assign to the current user</li>
- <li>p &nbsp;&nbsp; to plan</li>
- <li>i &nbsp;&nbsp; to change severity</li>
+ <li><span class="shortcut-button">c</span> &nbsp;&nbsp; to confirm</li>
+ <li><span class="shortcut-button">u</span> &nbsp;&nbsp; to unconfirm</li>
+ <li><span class="shortcut-button">r</span> &nbsp;&nbsp; to resolve/reopen</li>
+ <li><span class="shortcut-button">f</span> &nbsp;&nbsp; to mark as false-positive</li>
+ <li><span class="shortcut-button">a</span> &nbsp;&nbsp; to assign</li>
+ <li><span class="shortcut-button">m</span> &nbsp;&nbsp; to assign to the current user</li>
+ <li><span class="shortcut-button">p</span> &nbsp;&nbsp; to plan</li>
+ <li><span class="shortcut-button">i</span> &nbsp;&nbsp; to change severity</li>
</ul>
</div>
diff --git a/server/sonar-web/src/main/less/ui.less b/server/sonar-web/src/main/less/ui.less
index f23e9e733ae..5e62bcd0a58 100644
--- a/server/sonar-web/src/main/less/ui.less
+++ b/server/sonar-web/src/main/less/ui.less
@@ -433,3 +433,19 @@ input[type=button] {
border: none !important;
line-height: 1;
}
+
+
+
+.shortcut-button {
+ display: inline-block;
+ .square(24px);
+ line-height: 24px;
+ border: 1px solid #ccc;
+ border-radius: 3px;
+ .vertical-gradient(#f5f5f5, #eee);
+ box-shadow: inset 0 1px 0 #fff, 0 1px 0 #ccc;
+ color: @secondFontColor;
+ font-size: @baseFontSize;
+ font-weight: 500;
+ text-align: center;
+}