diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2014-11-06 14:27:08 +0100 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2014-11-06 15:03:08 +0100 |
commit | 7c24d094cb9da436b686c947ee98ea6d9ecd2db9 (patch) | |
tree | fdd1be64a878b4fbff65dcf42ae1e36a05455304 | |
parent | 796f0b1e4494af46c22e516d4548ae54d48833b9 (diff) | |
download | sonarqube-7c24d094cb9da436b686c947ee98ea6d9ecd2db9.tar.gz sonarqube-7c24d094cb9da436b686c947ee98ea6d9ecd2db9.zip |
SONAR-5718 Add an ability to go to the source and back by mouse
4 files changed, 5 insertions, 2 deletions
diff --git a/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee b/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee index 1d5f67c4df1..ce257923214 100644 --- a/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee +++ b/server/sonar-web/src/main/coffee/issues/workspace-list-item-view.coffee @@ -15,7 +15,7 @@ define [ events: - 'click .js-issues-snippet': 'openComponentViewer' + 'click .js-issues-to-source': 'openComponentViewer' initialize: (options) -> diff --git a/server/sonar-web/src/main/hbs/issues/issues-workspace-header.hbs b/server/sonar-web/src/main/hbs/issues/issues-workspace-header.hbs index 8f848bcd85f..84082396330 100644 --- a/server/sonar-web/src/main/hbs/issues/issues-workspace-header.hbs +++ b/server/sonar-web/src/main/hbs/issues/issues-workspace-header.hbs @@ -1,5 +1,7 @@ <div class="issues-header-component"> {{#if state.component}} + <a class="js-back">{{t 'issues.return_to_list'}}</a> + {{#with state.component}} {{qualifierIcon 'TRK'}} <a href="{{dashboardUrl project}}" title="{{projectName}}">{{projectName}}</a> / diff --git a/server/sonar-web/src/main/hbs/issues/issues-workspace-list-item.hbs b/server/sonar-web/src/main/hbs/issues/issues-workspace-list-item.hbs index 394902ee4d3..08c296cebac 100644 --- a/server/sonar-web/src/main/hbs/issues/issues-workspace-list-item.hbs +++ b/server/sonar-web/src/main/hbs/issues/issues-workspace-list-item.hbs @@ -1,7 +1,7 @@ <div class="issue-box-component subtitle"> <a href="{{dashboardUrl project}}">{{projectLongName}}</a> / - <a href="{{dashboardUrl component}}">{{componentLongName}}</a> + <a class="js-issues-to-source">{{componentLongName}}{{#if line}} (line {{line}}){{/if}}</a> </div> {{#if source}} diff --git a/sonar-core/src/main/resources/org/sonar/l10n/core.properties b/sonar-core/src/main/resources/org/sonar/l10n/core.properties index 6305917cf8c..99a5580abdb 100644 --- a/sonar-core/src/main/resources/org/sonar/l10n/core.properties +++ b/sonar-core/src/main/resources/org/sonar/l10n/core.properties @@ -684,6 +684,7 @@ issue.technical_debt=Technical Debt: issue.technical_debt_short=Debt issue.technical_debt_deleted=Rule not configured to generate technical debt estimate. issue.creation_date=Created +issues.return_to_list=Return To List #------------------------------------------------------------------------------ |