aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-server
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-05 15:38:31 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-05 15:38:31 +0000
commit0cb4405a468c7857ffe9fddb8c6dde19f1ba71ea (patch)
tree2c83620c70759cf782f5920899c71ae8bc084c0a /sonar-server
parentbafd7f5f808963f0489c30cecba53c8a3f1bf549 (diff)
downloadsonarqube-0cb4405a468c7857ffe9fddb8c6dde19f1ba71ea.tar.gz
sonarqube-0cb4405a468c7857ffe9fddb8c6dde19f1ba71ea.zip
fix IT
Diffstat (limited to 'sonar-server')
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/models/sonar/treemap.rb2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/components/index.html.erb2
-rw-r--r--sonar-server/src/main/webapp/WEB-INF/app/views/gwt/_resource_viewers.html.erb2
3 files changed, 3 insertions, 3 deletions
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 16008f4a865..3892d709a6d 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
@@ -69,7 +69,7 @@ class Sonar::Treemap
def get_url(snapshot,color_measure)
if snapshot.display_dashboard?
- "document.location='#{ApplicationController.root_context}/dashboard/index?resource=#{snapshot.project.copy_resource_id || snapshot.project_id}'"
+ "document.location='#{ApplicationController.root_context}/dashboard/index/#{snapshot.project.copy_resource_id || snapshot.project_id}'"
else
"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;"
end
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/components/index.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/components/index.html.erb
index 2a692e75ed9..2746695d881 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/components/index.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/components/index.html.erb
@@ -45,7 +45,7 @@
<td class="left" x="<%= u(snapshot.project.name) -%>">
<%= qualifier_icon(snapshot) %>
<% if snapshot.project.display_dashboard? %>
- <a href="<%= ApplicationController.root_context + "/dashboard/index?resource=#{snapshot.project.copy_resource_id || snapshot.project.id}" -%>"><%= snapshot.project.name -%></a>
+ <a href="<%= ApplicationController.root_context + "/dashboard/index/#{snapshot.project.copy_resource_id || snapshot.project.id}" -%>"><%= snapshot.project.name -%></a>
<% else %>
<%= snapshot.project.name %>
<% end %>
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/views/gwt/_resource_viewers.html.erb b/sonar-server/src/main/webapp/WEB-INF/app/views/gwt/_resource_viewers.html.erb
index 94d357c8180..b7eeb72827e 100644
--- a/sonar-server/src/main/webapp/WEB-INF/app/views/gwt/_resource_viewers.html.erb
+++ b/sonar-server/src/main/webapp/WEB-INF/app/views/gwt/_resource_viewers.html.erb
@@ -1,6 +1,6 @@
<script type="text/javascript">
var pages = [
- {"id": "dashboard", "name": "Dashboard", "gwt": false, "url": "/dashboard/index?hd=false&layout=false&resource=", "m":[], "s":['PRJ','DIR'], "q": [], "l": []},
+ {"id": "dashboard", "name": "Dashboard", "gwt": false, "url": "/dashboard/index?hd=false&layout=false&id=", "m":[], "s":['PRJ','DIR'], "q": [], "l": []},
<%
gwt_pages=[]
page_index=0