Commits

mpagnon committed be01b98

[Issue 1091] Bugtracker workspace button in Report view

  • Participants
  • Parent commits 93ff941

Comments (0)

Files changed (7)

File core/core.web/src/main/webapp/WEB-INF/tags/layout/common-head.tag

 
 --%>
 <link rel="stylesheet" type="text/css" href="${ pageContext.servletContext.contextPath }/styles/master.css" />
-<link type="image/x-icon" rel="shortcut icon" href="${ pageContext.servletContext.contextPath }/images/favicon.ico">
+<link type="image/x-icon" rel="shortcut icon" href="${ pageContext.servletContext.contextPath }/images/favicon.ico"/>

File tm/org.squashtest.csp.tm.web/src/main/webapp/WEB-INF/templates/contextual-report.frag.html

 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 	<!-- common head -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/master.css" />
+	<link rel="shortcut icon" type="image/x-icon" media="all" href="../../../../../../../core/core.web/src/main/webapp/images/favicon.ico" th:href="@{/images/favicon.ico}"/>
 	<!-- /common head -->
 	<!-- common script import -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/squashtm.fg.menu.css" />
 		$(function() {
 			/* navigation tag */
 			squashtm.navbar.initHighlighted('report');
+			var workspaceUrl = document.location.protocol + '//' + document.location.host + "/squash/bugtracker/workspace-button";
+			$("#bugtracker-div").load(workspaceUrl,
+		 			function(){$("#bugtracker-link").hover(
+		 						function () {squashtm.navbar.highlightOn("bugtracker-link");}, 
+		 						function () {squashtm.navbar.highlightOff("bugtracker-link");}
+	 	 		);
+	 		});
 				
 			/* wtf */
 			squashtm.notification.init({
 				infoTitle: /*[[#{popup.title.info}]]*/ 'Info', 
 				errorTitle: /*[[#{popup.title.error}]]*/ 'Erreur'
 			});
+
+			
+			
 			
 			squashtm.reportWorkspace.init();
 		});	

File tm/org.squashtest.csp.tm.web/src/main/webapp/WEB-INF/templates/datepicker.html

 	<!-- common head -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/master.css" />
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/master.blue.css" />
-
+	<link rel="shortcut icon" type="image/x-icon" media="all" href="../../../../../../../core/core.web/src/main/webapp/images/favicon.ico" th:href="@{/images/favicon.ico}"/>
 	<!-- common script import -->
 	<!-- jq header -->
 	<script type="text/javascript" src="../../../../../../../core/core.web/src/main/webapp/scripts/jquery/jquery-1.5.2-dev.js"></script>

File tm/org.squashtest.csp.tm.web/src/main/webapp/WEB-INF/templates/navbar.frag.html

 <!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-transitional-thymeleaf-spring3-3.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
 <head>
+	<!-- common head -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/master.css" th:href="@{/styles/master.css}" />
 	<!-- /common head -->
 	<!-- common script import -->
 					th:title="#{workspace.campaign.button.label}" 
 				/>
 			</a>
+			<div id="bugtracker-div" ></div>
 			<a id="report-link" class="nav_btn" href="report-workspace.html" th:href="@{/report-workspace}">
 				<img src="../../images/Button_Nav_Reporting_off.png" 
 					th:src="@{/images/Button_Nav_Reporting_off.png}" 

File tm/org.squashtest.csp.tm.web/src/main/webapp/WEB-INF/templates/report-viewer.html

 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 	<!-- common head -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/master.css" th:href="@{/styles/master.css}" />
+	<link rel="shortcut icon" type="image/x-icon" media="all" href="../../../../../../../core/core.web/src/main/webapp/images/favicon.ico" th:href="@{/images/favicon.ico}"/>
 	<!-- /common head -->
 	<!-- common script import -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/squashtm.fg.menu.css" th:href="@{/styles/squashtm.fg.menu.css}" />
     	$(function() {
 			/* navigation tag */
 			squashtm.navbar.initHighlighted('report');
+			var workspaceUrl = document.location.protocol + '//' + document.location.host + "/squash/bugtracker/workspace-button";
+			$("#bugtracker-div").load(workspaceUrl,
+		 			function(){$("#bugtracker-link").hover(
+		 						function () {squashtm.navbar.highlightOn("bugtracker-link");}, 
+		 						function () {squashtm.navbar.highlightOff("bugtracker-link");}
+	 	 		);
+	 		});
 			
 			/* project filter */
 			var projectFilterConf = {

File tm/org.squashtest.csp.tm.web/src/main/webapp/WEB-INF/templates/report-workspace.html

 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 	<!-- common head -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/master.css" th:href="@{/styles/master.css}" />
+	<link rel="shortcut icon" type="image/x-icon" media="all" href="../../../../../../../core/core.web/src/main/webapp/images/favicon.ico" th:href="@{/images/favicon.ico}"/>
 	<!-- /common head -->
 	<!-- common script import -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/squashtm.fg.menu.css" th:href="@{/styles/squashtm.fg.menu.css}" />
     	$(function() {
 			/* navigation tag */
 			squashtm.navbar.initHighlighted('report');
+			var workspaceUrl = document.location.protocol + '//' + document.location.host + "/squash/bugtracker/workspace-button";
+			$("#bugtracker-div").load(workspaceUrl,
+		 			function(){$("#bugtracker-link").hover(
+		 						function () {squashtm.navbar.highlightOn("bugtracker-link");}, 
+		 						function () {squashtm.navbar.highlightOff("bugtracker-link");}
+	 	 		);
+	 		});
 			
 			/* project filter */
 			var projectFilterConf = {

File tm/org.squashtest.csp.tm.web/src/main/webapp/WEB-INF/templates/test-case-executions.frag.html

 	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
 	<!-- common head -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/master.css" />
+	<link rel="shortcut icon" type="image/x-icon" media="all" href="../../../../../../../core/core.web/src/main/webapp/images/favicon.ico" th:href="@{/images/favicon.ico}"/>
 	<!-- /common head -->
 	<!-- common script import -->
 	<link rel="stylesheet" type="text/css" media="all" href="../../../../../../../core/core.web/src/main/webapp/styles/squashtm.fg.menu.css" />
 		$(function() {
 			/* navigation tag */
 			squashtm.navbar.initHighlighted('report');
+			var workspaceUrl = document.location.protocol + '//' + document.location.host + "/squash/bugtracker/workspace-button";
+			$("#bugtracker-div").load(workspaceUrl,
+		 			function(){$("#bugtracker-link").hover(
+		 						function () {squashtm.navbar.highlightOn("bugtracker-link");}, 
+		 						function () {squashtm.navbar.highlightOff("bugtracker-link");}
+	 	 		);
+	 		});
 				
 			squashtm.reportWorkspace.init();
 		});