diff options
Diffstat (limited to 'sonar-server/src/main')
5 files changed, 7 insertions, 7 deletions
diff --git a/sonar-server/src/main/coffee/component-viewer/header.coffee b/sonar-server/src/main/coffee/component-viewer/header.coffee index b37205fb0a6..8626fde7005 100644 --- a/sonar-server/src/main/coffee/component-viewer/header.coffee +++ b/sonar-server/src/main/coffee/component-viewer/header.coffee @@ -79,7 +79,8 @@ define [ if activeHeaderTab @enableBar(activeHeaderTab).done => if activeHeaderItem - @enableBarItem activeHeaderItem + @enableBarItem activeHeaderItem, @silentUpdate + @silentUpdate = false toggleFavorite: -> @@ -158,10 +159,10 @@ define [ @$(activeHeaderItem).addClass 'active' - enableBarItem: (item) -> + enableBarItem: (item, silent = false) -> $item = @$(item) if $item.length > 0 - @$(item).click() + if silent then @$(item).addClass('active') else @$(item).click() else @options.main.hideAllLines() diff --git a/sonar-server/src/main/coffee/component-viewer/source.coffee b/sonar-server/src/main/coffee/component-viewer/source.coffee index f1912f56b3d..b44f87f4974 100644 --- a/sonar-server/src/main/coffee/component-viewer/source.coffee +++ b/sonar-server/src/main/coffee/component-viewer/source.coffee @@ -111,6 +111,7 @@ define [ issueView.render().$el.appendTo container issueView.on 'reset', => @options.main.requestComponent(@options.main.key, false, false).done => + @options.main.headerView.silentUpdate = true @options.main.headerView.render() diff --git a/sonar-server/src/main/hbs/component-viewer/code-expand.hbs b/sonar-server/src/main/hbs/component-viewer/code-expand.hbs index 20b5e9f1246..81a84d25f20 100644 --- a/sonar-server/src/main/hbs/component-viewer/code-expand.hbs +++ b/sonar-server/src/main/hbs/component-viewer/code-expand.hbs @@ -13,6 +13,6 @@ <button class="button-clean js-expand" data-from="{{from}}" data-to="{{to}}"><i class="icon-expand"></i></button> </td> <td class="line"> - <a class="action js-expand-all">Show full source</a> + <a class="underlined-link js-expand-all">{{t 'component_viewer.show_full_source'}}</a> </td> </tr>
\ No newline at end of file diff --git a/sonar-server/src/main/hbs/component-viewer/header.hbs b/sonar-server/src/main/hbs/component-viewer/header.hbs index bfcb4c30048..93aef898d33 100644 --- a/sonar-server/src/main/hbs/component-viewer/header.hbs +++ b/sonar-server/src/main/hbs/component-viewer/header.hbs @@ -22,7 +22,7 @@ {{/if}} </div> {{else}} - <div class="component-viewer-header-component-project removed">Removed</div> + <div class="component-viewer-header-component-project removed">{{t 'issue.component_deleted'}}</div> {{/unless}} </div> diff --git a/sonar-server/src/main/less/component-viewer.less b/sonar-server/src/main/less/component-viewer.less index 115e5442e0a..3820e785e28 100644 --- a/sonar-server/src/main/less/component-viewer.less +++ b/sonar-server/src/main/less/component-viewer.less @@ -279,8 +279,6 @@ border-right: none; background: url(../images/gray-stripes.png) repeat; } - - .line { text-align: right; } } .code .row-hidden { display: none; } |