aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorStas Vilchik <vilchiks@gmail.com>2015-06-22 11:10:30 +0200
committerStas Vilchik <vilchiks@gmail.com>2015-06-22 11:10:37 +0200
commit4c899142d0af52e729e2a3903fbe23e09c309276 (patch)
tree93c93a6f8a2a634fc64e0049a97d033c0d4b07b9 /server
parent58909c760e9fb30aef671a3d637a4a63d34dd013 (diff)
downloadsonarqube-4c899142d0af52e729e2a3903fbe23e09c309276.tar.gz
sonarqube-4c899142d0af52e729e2a3903fbe23e09c309276.zip
SONAR-5851 apply ui feedback
Diffstat (limited to 'server')
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js7
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs4
-rw-r--r--server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs2
-rw-r--r--server/sonar-web/src/main/less/components/select-list.less5
4 files changed, 15 insertions, 3 deletions
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js b/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js
index 3f9d16f7ea2..108abbf2684 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/profile-details-view.js
@@ -57,6 +57,12 @@ define([
if (this.options.anchor === 'comparison') {
this.scrollToComparison();
}
+ this.$('#quality-profile-changelog-form input')
+ .datepicker({
+ dateFormat: 'yy-mm-dd',
+ changeMonth: true,
+ changeYear: true
+ });
},
initProjectsSelect: function () {
@@ -64,6 +70,7 @@ define([
this.projectsSelectList = new window.SelectList({
el: this.$('#quality-profile-projects-list'),
width: '100%',
+ height: 200,
readOnly: !this.options.canWrite,
focusSearch: false,
format: function (item) {
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs
index 92d87282448..cde03590a6c 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profile-changelog.hbs
@@ -6,9 +6,9 @@
<form class="spacer-bottom" id="quality-profile-changelog-form">
{{t 'quality_profiles.changelog_from'}}
- <input name="since" type="text" value="{{eventsParameters.since}}" placeholder="1970-01-31">
+ <input name="since" type="text" value="{{eventsParameters.since}}" placeholder="{{t 'optional'}}">
{{t 'to'}}
- <input name="to" type="text" value="{{eventsParameters.to}}" placeholder="1970-01-31">
+ <input name="to" type="text" value="{{eventsParameters.to}}" placeholder="{{t 'optional'}}">
<button id="quality-profile-changelog-form-submit">{{t 'search_verb'}}</button>
</form>
diff --git a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs
index f1f4a65b5fe..40d3b73153b 100644
--- a/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs
+++ b/server/sonar-web/src/main/js/apps/quality-profiles/templates/quality-profiles-profile-details.hbs
@@ -63,7 +63,7 @@
<p class="alert alert-info">{{t 'quality_profiles.projects_for_default'}}</p>
{{/if}}
{{else}}
- <div id="quality-profile-projects-list"></div>
+ <div id="quality-profile-projects-list" class="select-list-on-full-width"></div>
{{/if}}
</div>
diff --git a/server/sonar-web/src/main/less/components/select-list.less b/server/sonar-web/src/main/less/components/select-list.less
index 668a0ddeb41..25b35d46c71 100644
--- a/server/sonar-web/src/main/less/components/select-list.less
+++ b/server/sonar-web/src/main/less/components/select-list.less
@@ -211,3 +211,8 @@
.select-list-search-control-clear:hover {
background-color: #d6d6d6;
}
+
+.select-list-on-full-width .select-list-search-control {
+ float: left;
+ margin-left: 20px;
+}