diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-07-17 22:53:18 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-07-17 22:54:08 +0200 |
commit | 298e6e95a0a94f357ef953574810d05722fb81e5 (patch) | |
tree | ccfc6dd76db6126f8c117327a1d1270b3e998384 | |
parent | 0e8e411855094eaffea051a137c1aa27b1cb479a (diff) | |
download | sonarqube-298e6e95a0a94f357ef953574810d05722fb81e5.tar.gz sonarqube-298e6e95a0a94f357ef953574810d05722fb81e5.zip |
Fix display of widget search box
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definitions.html.erb | 42 |
1 files changed, 22 insertions, 20 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definitions.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definitions.html.erb index 49f6dbcd6fd..af498ab13a9 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definitions.html.erb +++ b/sonar-server/src/main/webapp/WEB-INF/app/views/dashboard/_widget_definitions.html.erb @@ -1,23 +1,25 @@ -<div style="float: right; padding: 0 3px"> - Search: - <input id="filter-widget-box" name="filter-widget-box" size="10" onKeyUp="filtersWidgetsByContent(this.value);"/> -</div> - -<div style="line-height: 20px; vertical-align: middle; padding: 0 3px; margin-right: 10px"> - <ul class="horizontal widget_categs" id="widget-filters"> - <li>Category:</li> - <li class="<%= 'selected' if category.blank? -%>"> - <a href="#" onClick="return filterWidgetsByCategory('')" id="widget-filter-none"><%= message('none') -%></a> - </li> - <% @widget_categories.each do |c| %> - <li class="<%= 'selected' if category==c -%>"> - <a href="#" onClick="return filterWidgetsByCategory('<%= escape_javascript(c) -%>')" id="widget-filter-<%= u(c) -%>"><%= h(c) -%></a> - </li> - <% end %> - </ul> - <%= image_tag 'loading.gif', :style => 'vertical-align: top; display: none', :id => 'filter-widgets-loading' -%> -</div> -<div style="clear: both"></div> +<table class="width100"> + <tr style="line-height: 20px"> + <td valign="top"> + <ul class="horizontal widget_categs" id="widget-filters"> + <li>Category:</li> + <li class="<%= 'selected' if category.blank? -%>"> + <a href="#" onClick="return filterWidgetsByCategory('')" id="widget-filter-none"><%= message('none') -%></a> + </li> + <% @widget_categories.each do |c| %> + <li class="<%= 'selected' if category==c -%>"> + <a href="#" onClick="return filterWidgetsByCategory('<%= escape_javascript(c) -%>')" id="widget-filter-<%= u(c) -%>"><%= h(c) -%></a> + </li> + <% end %> + </ul> + <%= image_tag 'loading.gif', :style => 'vertical-align: top; display: none', :id => 'filter-widgets-loading' -%> + </td> + <td nowrap valign="top"> + Search: + <input id="filter-widget-box" name="filter-widget-box" size="10" onKeyUp="filtersWidgetsByContent(this.value);"/> + </td> + </tr> +</table> <% @widget_definitions.each do |definition| %> <%= render :partial => 'widget_definition', :locals => {:definition => definition, :dashboard => @dashboard, :resource => @resource, :category => category} %> |