summaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-03-04 16:28:28 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-03-04 16:28:28 +0100
commit4678773c784b97f2c52cbdad5f61159ddcbde559 (patch)
tree73dcf18a98b2bb3b308fd3f9b485a6d9ea284af5 /sonar-server
parent6e371ff1fb4ee703454c1b1134ce2012507e2a93 (diff)
downloadsonarqube-4678773c784b97f2c52cbdad5f61159ddcbde559.tar.gz
sonarqube-4678773c784b97f2c52cbdad5f61159ddcbde559.zip
SONAR-2218 improve HTML for IT
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java4
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb3
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb2
3 files changed, 2 insertions, 7 deletions
diff --git a/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java b/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
index d0544c03692..079c1db2edc 100644
--- a/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
+++ b/sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
@@ -131,10 +131,6 @@ public final class JRubyFacade implements ServerComponent {
return getContainer().getComponent(Views.class).getPages(NavigationSection.RESOURCE_TAB, null, null, null);
}
- public List<ViewProxy<Page>> getResourceTabs(String scope, String qualifier, String language) {
- return getContainer().getComponent(Views.class).getPages(NavigationSection.RESOURCE_TAB, scope, qualifier, language);
- }
-
public ViewProxy<Page> getPage(String id) {
return getContainer().getComponent(Views.class).getPage(id);
}
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
index 53023f55127..c5c63f84d31 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/helpers/application_helper.rb
@@ -198,7 +198,6 @@ module ApplicationHelper
#
# * <tt>:resource</tt> - id or key of the selected resource
# * <tt>:highlight</tt> - key of the metric to highlight, different than the metric to drilldown.
- # *<tt>:viewer_plugin_key</tt> - the default GWT plugin to be used when clicking on a resource in the drilldown to view it's source
# * <tt>:period</tt> - period index
# * <tt>:only_periods</tt> - true if only v
#
@@ -206,7 +205,7 @@ module ApplicationHelper
#
# url_for_drilldown('ncloc')
# url_for_drilldown('ncloc', {:resource => 'org.apache.struts:struts-parent', :highlight => 'lines'})
- # url_for_drilldown('ncloc', {:resource => 'org.apache.struts:struts-parent', :viewer_plugin_key => 'org.sonar.plugins.core.violationsviewer.GwtViolationsViewer'})
+ # url_for_drilldown('ncloc', {:resource => 'org.apache.struts:struts-parent'})
#
def url_for_drilldown(metric_or_measure, options={})
if options[:resource].nil? && !@project
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb
index e7b924b015c..175c65127ca 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb
@@ -76,7 +76,7 @@ class Sonar::Treemap
"document.location='#{ApplicationController.root_context}/dashboard/index/#{snapshot.project.copy_resource_id || snapshot.project_id}'"
else
color_metric_key=(@color_metric ? @color_metric.key : nil)
- "window.open('#{ApplicationController.root_context}/resource/index/#{snapshot.project_id}?viewer_metric_key=#{color_metric_key}','resource','height=800,width=900,scrollbars=1,resizable=1');return false;"
+ "window.open('#{ApplicationController.root_context}/resource/index/#{snapshot.project_id}?metric=#{color_metric_key}','resource','height=800,width=900,scrollbars=1,resizable=1');return false;"
end
end