]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-5345 apply feedback
authorStas Vilchik <vilchiks@gmail.com>
Thu, 5 Feb 2015 09:39:31 +0000 (10:39 +0100)
committerStas Vilchik <vilchiks@gmail.com>
Thu, 5 Feb 2015 09:39:31 +0000 (10:39 +0100)
server/sonar-web/src/main/coffee/issues/app-context.coffee
server/sonar-web/src/main/hbs/nav/nav-context-navbar.hbs
server/sonar-web/src/main/js/nav/context-navbar-view.js
server/sonar-web/src/main/less/components/search-navigator.less

index 9454f59fc7cad338bd039a31153ef4d4296f20a6..be0bf3815d0e744911ac838701ea7988f9396166 100644 (file)
@@ -46,14 +46,13 @@ requirejs [
     'TRK': ['projectUuids']
     'BRC': ['projectUuids']
     'DIR': ['projectUuids', 'moduleUuids']
+    'DEV': ['authors']
 
 
   App.updateContextFacets = ->
     facets = @state.get 'facets'
     allFacets = @state.get 'allFacets'
     facetsFromServer = @state.get 'facetsFromServer'
-    facets.unshift 'context'
-    allFacets.unshift 'context'
     @state.set
       facets: facets
       allFacets: _.difference allFacets, @getRestrictedFacets()[window.config.resourceQualifier]
index c39a80650428fbcca1a7972d0542b9f0714723ee..7d383f4966b3c1c235b216656b2e0e41c05c4783 100644 (file)
@@ -28,7 +28,7 @@
       <a href="{{link '/components/index/' contextId }}">{{t 'components.page'}}</a>
     </li>
     <li {{#isActiveLink '/component_issues'}}class="active"{{/isActiveLink}}>
-      <a href="{{link '/component_issues/index?id=' contextKey }}">{{t 'issues.page'}}</a>
+      <a href="{{link '/component_issues/index?id=' contextKeyEncoded }}">{{t 'issues.page'}}</a>
     </li>
     <li class="dropdown">
       <a class="dropdown-toggle" data-toggle="dropdown" href="#">{{t 'more'}}&nbsp;<i class="icon-dropdown"></i></a>
index f045a2f770a00e39cc3a5c2438bc13d756f1c75c..7a6fb35b9f6699854650fa16805fb8c4ba51fc2e 100644 (file)
@@ -33,7 +33,8 @@ define([
 
     serializeData: function () {
       return _.extend(Marionette.Layout.prototype.serializeData.apply(this, arguments), {
-        canManageContextDashboards: window.SS.user != null
+        canManageContextDashboards: window.SS.user != null,
+        contextKeyEncoded: encodeURIComponent(this.model.get('contextKey'))
       });
     }
   });
index 6e181377bfa0764d3b4f6394578ae835570a4358..3503922f9ba9bba7befb99f8e3276d2dc4875745 100644 (file)
@@ -53,7 +53,7 @@
   font-size: @baseFontSize;
 }
 
-.search-navigator-facet-box + .search-navigator-facet-box {
+.search-navigator-facet-box:not(.hidden) + .search-navigator-facet-box {
   border-top: 1px solid @barBorderColor;
 }