aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2014-03-21 16:57:13 +0600
committerStas Vilchik <vilchiks@gmail.com>2014-03-21 16:57:13 +0600
commit13b1ab6ba41b0ecabf4cc1d1221b13d92be269f9 (patch)
treedfb546767fa4c7c3cc01bd9a345b6269f06a94e5 /sonar-server
parent5979c6f6ae5a2de2c067c5289b46f98cdf8abfa5 (diff)
downloadsonarqube-13b1ab6ba41b0ecabf4cc1d1221b13d92be269f9.tar.gz
sonarqube-13b1ab6ba41b0ecabf4cc1d1221b13d92be269f9.zip
SONAR-4366 Some UI improvements
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/coffee/quality-gate/collections/quality-gates.coffee3
-rw-r--r--sonar-server/src/main/webapp/js/templates/quality-gates.js2
-rw-r--r--sonar-server/src/main/webapp/templates/quality-gates/quality-gate-actions.hbs2
3 files changed, 5 insertions, 2 deletions
diff --git a/sonar-server/src/main/webapp/coffee/quality-gate/collections/quality-gates.coffee b/sonar-server/src/main/webapp/coffee/quality-gate/collections/quality-gates.coffee
index 976f1058370..1d1c8542481 100644
--- a/sonar-server/src/main/webapp/coffee/quality-gate/collections/quality-gates.coffee
+++ b/sonar-server/src/main/webapp/coffee/quality-gate/collections/quality-gates.coffee
@@ -25,3 +25,6 @@ define [
parse: (r) ->
r.qualitygates.map (gate) ->
_.extend gate, default: gate.id == r.default
+
+
+ comparator: (item) -> item.get('name').toLowerCase()
diff --git a/sonar-server/src/main/webapp/js/templates/quality-gates.js b/sonar-server/src/main/webapp/js/templates/quality-gates.js
index 47dd03166b6..bfb6744a218 100644
--- a/sonar-server/src/main/webapp/js/templates/quality-gates.js
+++ b/sonar-server/src/main/webapp/js/templates/quality-gates.js
@@ -12,7 +12,7 @@ function program1(depth0,data) {
var buffer = "", helper, options;
buffer += "\n <div class=\"navigator-header-actions button-group\">\n <button id=\"quality-gate-add\">"
- + escapeExpression((helper = helpers.t || (depth0 && depth0.t),options={hash:{},data:data},helper ? helper.call(depth0, "add_verb", options) : helperMissing.call(depth0, "t", "add_verb", options)))
+ + escapeExpression((helper = helpers.t || (depth0 && depth0.t),options={hash:{},data:data},helper ? helper.call(depth0, "create", options) : helperMissing.call(depth0, "t", "create", options)))
+ "</button>\n </div>\n";
return buffer;
}
diff --git a/sonar-server/src/main/webapp/templates/quality-gates/quality-gate-actions.hbs b/sonar-server/src/main/webapp/templates/quality-gates/quality-gate-actions.hbs
index df06013aa54..efab29d2160 100644
--- a/sonar-server/src/main/webapp/templates/quality-gates/quality-gate-actions.hbs
+++ b/sonar-server/src/main/webapp/templates/quality-gates/quality-gate-actions.hbs
@@ -1,6 +1,6 @@
<h1 class="navigator-header-title">{{t 'quality_gates.page'}}</h1>
{{#if canEdit}}
<div class="navigator-header-actions button-group">
- <button id="quality-gate-add">{{t 'add_verb'}}</button>
+ <button id="quality-gate-add">{{t 'create'}}</button>
</div>
{{/if}} \ No newline at end of file