diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-11-06 14:54:03 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-11-06 15:03:08 +0100 |
commit | c5cabe81c90831414996dd779dbb07f7e0c9df6d (patch) | |
tree | b8d216ecfecf2c817c41ee4dba122802b16e61de | |
parent | 7c24d094cb9da436b686c947ee98ea6d9ecd2db9 (diff) | |
download | sonarqube-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.coffee | 3 | ||||
-rw-r--r-- | server/sonar-web/src/main/hbs/issues/issues-help.hbs | 22 | ||||
-rw-r--r-- | server/sonar-web/src/main/less/ui.less | 16 |
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>↑ ↓ to navigate between issues</li> - <li>→ to go from the list of issues to the source code</li> - <li>← to return back to the list</li> + <li><span class="shortcut-button">↑</span> <span class="shortcut-button">↓</span> to navigate between issues</li> + <li><span class="shortcut-button">→</span> to go from the list of issues to the source code</li> + <li><span class="shortcut-button">←</span> to return back to the list</li> </ul> <p>To control selected issue</p> <ul> - <li>c to confirm</li> - <li>u to unconfirm</li> - <li>r to resolve/reopen</li> - <li>f to mark as false-positive</li> - <li>a to assign</li> - <li>m to assign to the current user</li> - <li>p to plan</li> - <li>i to change severity</li> + <li><span class="shortcut-button">c</span> to confirm</li> + <li><span class="shortcut-button">u</span> to unconfirm</li> + <li><span class="shortcut-button">r</span> to resolve/reopen</li> + <li><span class="shortcut-button">f</span> to mark as false-positive</li> + <li><span class="shortcut-button">a</span> to assign</li> + <li><span class="shortcut-button">m</span> to assign to the current user</li> + <li><span class="shortcut-button">p</span> to plan</li> + <li><span class="shortcut-button">i</span> 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; +} |