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
<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 %>
<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
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:findbugs</td>
+ <td>/dashboard/index/org.sonar.tests:findbugs</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:maven-extensions</td>
+ <td>/dashboard/index/org.sonar.tests:maven-extensions</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reuse-rules-config</td>
+ <td>/dashboard/index/org.sonar.tests:reuse-rules-config</td>
<td></td>
</tr>
<tr>
<tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.jee:parent</td>
+ <td>/dashboard/index/org.sonar.tests.jee:parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:SONAR-594-no-violations</td>
+ <td>/dashboard/index/org.sonar.tests:SONAR-594-no-violations</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:SONAR-787-checkstyle-SuppressionCommentFilter</td>
+ <td>/dashboard/index/org.sonar.tests:SONAR-787-checkstyle-SuppressionCommentFilter</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.clover2skip:parent</td>
+ <td>/dashboard/index/org.sonar.tests.clover2skip:parent</td>
<td></td>
</tr>
<tr>
<td><b>Test Suite</b></td>
</tr>
+
+
<tr>
<td><a href="filters/anonymous-default-filters.html">filters/anonymous-default-filters</a></td>
</tr>
<tr>
<td><a href="footer-data.html">footer data</a></td>
</tr>
+<tr>
+ <td><a href="dashboard/deprecated-url-format.html">dashboard/deprecated-url-format</a></td>
+</tr>
<tr>
<td><a href="dashboard/SONAR-601-project-without-measures.html">dashboard/SONAR-601-project-without-measures</a>
</td>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.clover2:parent</td>
+ <td>/dashboard/index/org.sonar.tests.clover2:parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.clover3:parent</td>
+ <td>/dashboard/index/org.sonar.tests.clover3:parent</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:maven-custom-type</td>
+ <td>/dashboard/index/org.sonar.tests:maven-custom-type</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:jar-without-sources</td>
+ <td>/dashboard/index/org.sonar.tests:jar-without-sources</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:pom-without-modules</td>
+ <td>/dashboard/index/org.sonar.tests:pom-without-modules</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head profile="http://selenium-ide.openqa.org/profiles/test-case">
+<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
+<link rel="selenium.base" href="" />
+<title>deprecated-url-format</title>
+</head>
+<body>
+<table cellpadding="1" cellspacing="1" border="1">
+<thead>
+<tr><td rowspan="1" colspan="3">deprecated-url-format</td></tr>
+</thead><tbody>
+<tr>
+ <td>open</td>
+ <td>/project/index/org.sonar.tests:reference?foo=bar</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertLocation</td>
+ <td>glob:*/dashboard/index/org.sonar.tests:reference?foo=bar</td>
+ <td></td>
+</tr>
+<tr>
+ <td>assertTextPresent</td>
+ <td>Sonar tests - reference</td>
+ <td></td>
+</tr>
+
+</tbody></table>
+</body>
+</html>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-core:org.apache.struts.config</td>
+ <td>/dashboard/index/org.apache.struts:struts-core:org.apache.struts.config</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-core:org.apache.struts.config</td>
+ <td>/dashboard/index/org.apache.struts:struts-core:org.apache.struts.config</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-faces</td>
+ <td>/dashboard/index/org.apache.struts:struts-faces</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:disabled-project</td>
+ <td>/dashboard/index/org.sonar.tests:disabled-project</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.modules:parent</td>
+ <td>/dashboard/index/org.sonar.tests.modules:parent</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.modules:module_a</td>
+ <td>/dashboard/index/org.sonar.tests.modules:module_a</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.modules:submodule_a1:org.codehaus.sonar.samples.samplewithmodules.submodulea1</td>
+ <td>/dashboard/index/org.sonar.tests.modules:submodule_a1:org.codehaus.sonar.samples.samplewithmodules.submodulea1</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:exclusions</td>
+ <td>/dashboard/index/org.sonar.tests:exclusions</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:exclusions</td>
+ <td>/dashboard/index/org.sonar.tests:exclusions</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:exclusions</td>
+ <td>/dashboard/index/org.sonar.tests:exclusions</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:exclusions</td>
+ <td>/dashboard/index/org.sonar.tests:exclusions</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/org.apache.struts:struts-parent</td>
+ <td>/dashboard/index/org.apache.struts:struts-parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference?locale=foo</td>
+ <td>/dashboard/index/org.sonar.tests:reference?locale=foo</td>
<td></td>
</tr>
<tr>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head profile="http://selenium-ide.openqa.org/profiles/test-case">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel="selenium.base" href="http://localhost:9000/" />
<title>french-france</title>
</head>
<body>
</thead><tbody>
<tr>
<td>open</td>
- <td>/dashboard/index?resource=org.sonar.tests:reference&locale=fr-FR</td>
+ <td>/dashboard/index/org.sonar.tests:reference&locale=fr-FR</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference?locale=fr-CH</td>
+ <td>/dashboard/index/org.sonar.tests:reference?locale=fr-CH</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference?locale=fr</td>
+ <td>/dashboard/index/org.sonar.tests:reference?locale=fr</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:sjis-charset</td>
+ <td>/dashboard/index/org.sonar.tests:sjis-charset</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:sjis-charset</td>
+ <td>/dashboard/index/org.sonar.tests:sjis-charset</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:java-inner-classes</td>
+ <td>/dashboard/index/org.sonar.tests:java-inner-classes</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:many-source-dirs</td>
+ <td>/dashboard/index/org.sonar.tests:many-source-dirs</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.modules:parent</td>
+ <td>/dashboard/index/org.sonar.tests.modules:parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:single-classes</td>
+ <td>/dashboard/index/org.sonar.tests:single-classes</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/${PROJECT_KEY}</td>
+ <td>/dashboard/index/${PROJECT_KEY}</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/${PROJECT_KEY}</td>
+ <td>/dashboard/index/${PROJECT_KEY}</td>
<td></td>
</tr>
<tr>
</tr>
<tr>
<td>open</td>
- <td>/project/index/${PROJECT_KEY}</td>
+ <td>/dashboard/index/${PROJECT_KEY}</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:rulesOnTests</td>
+ <td>/dashboard/index/org.sonar.tests:rulesOnTests</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:single-classes</td>
+ <td>/dashboard/index/org.sonar.tests:single-classes</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.test-failures:moduleA</td>
+ <td>/dashboard/index/org.sonar.tests.test-failures:moduleA</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:deprecated-sonar-light</td>
+ <td>/dashboard/index/org.sonar.tests:deprecated-sonar-light</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:ant-static</td>
+ <td>/dashboard/index/org.sonar.tests:ant-static</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:ant-static</td>
+ <td>/dashboard/index/org.sonar.tests:ant-static</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:timemachine</td>
+ <td>/dashboard/index/org.sonar.tests:timemachine</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:timemachine</td>
+ <td>/dashboard/index/org.sonar.tests:timemachine</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:timemachine</td>
+ <td>/dashboard/index/org.sonar.tests:timemachine</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:ant-static</td>
+ <td>/dashboard/index/org.sonar.tests:ant-static</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:ant-dynamic-clover</td>
+ <td>/dashboard/index/org.sonar.tests:ant-dynamic-clover</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:ant-dynamic-cobertura</td>
+ <td>/dashboard/index/org.sonar.tests:ant-dynamic-cobertura</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:ant-dynamic-junit</td>
+ <td>/dashboard/index/org.sonar.tests:ant-dynamic-junit</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reuse-coverage-reports</td>
+ <td>/dashboard/index/org.sonar.tests:reuse-coverage-reports</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:skip-surefire-tests</td>
+ <td>/dashboard/index/org.sonar.tests:skip-surefire-tests</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests.test-failures:parent</td>
+ <td>/dashboard/index/org.sonar.tests.test-failures:parent</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:no-tests</td>
+ <td>/dashboard/index/org.sonar.tests:no-tests</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>
</thead><tbody>
<tr>
<td>open</td>
- <td>/project/index/org.sonar.tests:reference</td>
+ <td>/dashboard/index/org.sonar.tests:reference</td>
<td></td>
</tr>
<tr>