diff options
author | Stas Vilchik <vilchiks@gmail.com> | 2013-12-03 13:01:27 +0600 |
---|---|---|
committer | Stas Vilchik <vilchiks@gmail.com> | 2013-12-03 13:01:27 +0600 |
commit | 21b31b0168666161f555e06d9ad8650ada4ea32a (patch) | |
tree | 1f9b1a88df85c3bb1b375a0b77222c1c1a644477 /plugins | |
parent | 465bb0984f70f49940ee09cdabe20221a83920ca (diff) | |
download | sonarqube-21b31b0168666161f555e06d9ad8650ada4ea32a.tar.gz sonarqube-21b31b0168666161f555e06d9ad8650ada4ea32a.zip |
SONAR-4910 UI - flat design for input elements
Diffstat (limited to 'plugins')
2 files changed, 15 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb index fed5e228547..c8eb6527d10 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/events.html.erb @@ -63,6 +63,12 @@ <% end %> </select> + <script> + $j(function() { + $j('#select_category_<%= widget.id -%>').select2({ width: '100px' }); + }); + </script> + </h3> <table id="events_<%= widget.id -%>" class="spaced data"> @@ -105,4 +111,4 @@ changeCategory('all', <%= widget.id -%>); </script> -<% end %>
\ No newline at end of file +<% end %> diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb index 5d9e4f46236..d1c59706d12 100644 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb +++ b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/hotspots/hotspot_most_violated_rules.html.erb @@ -37,7 +37,7 @@ </a> </div> <h3> - <%= message(dashboard_configuration.selected_period? ? 'widget.hotspot_most_violated_rules.name_when_period' : 'widget.hotspot_most_violated_rules.name') -%> + <%= message(dashboard_configuration.selected_period? ? 'widget.hotspot_most_violated_rules.name_when_period' : 'widget.hotspot_most_violated_rules.name') %> <select class="small withIcons" style="margin-left: 20px" onchange="showMostViolatedRules<%= widget.id -%>(this.value);" id="select-severity_<%= widget.id -%>"> <option value="" <%= 'selected' if default_severity=='' -%>><%= message('widget.hotspot_most_violated_rules.any_severity') -%></option> @@ -45,6 +45,12 @@ <option class="sev_<%= key -%>" value="<%= key -%>" <%= 'selected' if default_severity==key -%>><%= message("severity.#{key}") -%></option> <% end %> </select> + + <script> + $j(function() { + $j('#select-severity_<%= widget.id -%>').select2({ width: '130px' }); + }); + </script> </h3> </div> @@ -109,4 +115,4 @@ </div> <script type="text/javascript"> showMostViolatedRules<%= widget.id -%>("<%= default_severity -%>"); -</script>
\ No newline at end of file +</script> |