diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2015-04-15 16:39:28 +0200 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2015-04-15 16:39:28 +0200 |
commit | 2bbde98f41ffb2ea3d0d12dceb1969caea4b2f85 (patch) | |
tree | cec35442b33c358649f80f420e3955f638f4838d /server/sonar-web/src/main | |
parent | 981a636b63101fd5b1f953d245bf15eaa2c017df (diff) | |
download | sonarqube-2bbde98f41ffb2ea3d0d12dceb1969caea4b2f85.tar.gz sonarqube-2bbde98f41ffb2ea3d0d12dceb1969caea4b2f85.zip |
Revert "SONAR-6364 Display CLOSED issues on top of the component viewer"
This reverts commit d7315be8b112d68924d25261fcceb5450aafd5c7.
Diffstat (limited to 'server/sonar-web/src/main')
4 files changed, 3 insertions, 8 deletions
diff --git a/server/sonar-web/src/main/coffee/issue/models/issue.coffee b/server/sonar-web/src/main/coffee/issue/models/issue.coffee index ca21696a82a..e5f99dc2bed 100644 --- a/server/sonar-web/src/main/coffee/issue/models/issue.coffee +++ b/server/sonar-web/src/main/coffee/issue/models/issue.coffee @@ -30,8 +30,3 @@ define -> parse: (r) -> if r.issue then r.issue else r - - - getDisplayLine: -> - return 0 if @get('status') == 'CLOSED' - @get('line') || 0 diff --git a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee index 335db325971..76288c332d7 100644 --- a/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee +++ b/server/sonar-web/src/main/coffee/issues/component-viewer/main.coffee @@ -52,7 +52,7 @@ define [ super @bindShortcuts() if @baseIssue? - @scrollToLine @baseIssue.getDisplayLine() + @scrollToLine @baseIssue.get 'line' bindShortcuts: -> diff --git a/server/sonar-web/src/main/js/source-viewer/viewer.js b/server/sonar-web/src/main/js/source-viewer/viewer.js index 8423c0ffb33..82699e17791 100644 --- a/server/sonar-web/src/main/js/source-viewer/viewer.js +++ b/server/sonar-web/src/main/js/source-viewer/viewer.js @@ -298,7 +298,7 @@ define([ var that = this, lines = {}; issues.forEach(function (issue) { - var line = issue.getDisplayLine(); + var line = issue.get('line') || 0; if (!_.isArray(lines[line])) { lines[line] = []; } diff --git a/server/sonar-web/src/main/less/pages/issues.less b/server/sonar-web/src/main/less/pages/issues.less index 90998f33aea..0cc944a4c37 100644 --- a/server/sonar-web/src/main/less/pages/issues.less +++ b/server/sonar-web/src/main/less/pages/issues.less @@ -163,7 +163,7 @@ } .issues-workspace-home { - width: ~"calc(100vw - @{sideWidth} - 20px)"; + width: ~"calc(100vw - @{sideWidth})"; max-width: 900px; margin-left: auto; margin-right: auto; |