[Fusionforge-commits] r12565 - in trunk/src/plugins/mantisbt: common view www www/user

Franck VILLAUME nerville at fusionforge.org
Fri Mar 4 13:14:54 CET 2011


Author: nerville
Date: 2011-03-04 13:14:53 +0100 (Fri, 04 Mar 2011)
New Revision: 12565

Added:
   trunk/src/plugins/mantisbt/www/style.css
Modified:
   trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
   trunk/src/plugins/mantisbt/view/roadmap.php
   trunk/src/plugins/mantisbt/view/viewAttachment.php
   trunk/src/plugins/mantisbt/view/viewIssue.php
   trunk/src/plugins/mantisbt/view/viewIssues.php
   trunk/src/plugins/mantisbt/view/viewNote.php
   trunk/src/plugins/mantisbt/www/user/index.php
Log:
cleanup. move css to style.css

Modified: trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php
===================================================================
--- trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php	2011-03-04 11:43:34 UTC (rev 12564)
+++ trunk/src/plugins/mantisbt/common/MantisBTPlugin.class.php	2011-03-04 12:14:53 UTC (rev 12565)
@@ -574,6 +574,7 @@
 		$returned = false;
 		html_use_tooltips();
 		use_javascript('/plugins/'.$this->name.'/scripts/MantisBTController.js');
+		use_stylesheet('/plugins/'.$this->name.'/style.css');
 		switch ($type) {
 			case 'project': {
 				global $group_id;

Modified: trunk/src/plugins/mantisbt/view/roadmap.php
===================================================================
--- trunk/src/plugins/mantisbt/view/roadmap.php	2011-03-04 11:43:34 UTC (rev 12564)
+++ trunk/src/plugins/mantisbt/view/roadmap.php	2011-03-04 12:14:53 UTC (rev 12565)
@@ -64,30 +64,6 @@
 ?>
 	});
 </script>
-
-<style>
-.notice_title {
-	background-color: #D7E0EB;
-	padding: 10px;
-	font-weight: bold;
-	margin-bottom:0px;
-	cursor: pointer;
-	color: #4F93C3;
-}
-
-.notice_content {
-	border: 1px solid #D7E0EB;
-	padding: 10px;
-	font-weight: bold;
-	-moz-border-radius-bottomright: 8px;
-	-moz-border-radius-bottomleft: 8px;
-	-webkit-border-bottom-right-radius: 8px;
-	-webkit-border-bottom-left-radius: 8px;
-	margin-top:0px;
-}
-</style>
-
-<h2 style='border-bottom: 1px solid black'><?php echo _('Filters') ?></h2>
 <p class="notice_title" onclick='jQuery("#expandable_filter").slideToggle(300)'><?php echo _('Display filter rules') ?></p>
 
 <div id='expandable_filter' class="notice_content" style='clear: both'>
@@ -97,7 +73,6 @@
 </div>
 
 <?php
-	echo '<h2 style="border-bottom: 1px solid black">'._('Roadmap').'</h2>';
 	if (!isset($_POST['projectVersionId'])) {
 		if (isset($listVersions) && !empty($listVersions)) {
 			$listPrintVersions = $listVersions;
@@ -201,6 +176,8 @@
 				}
 			}
 		}
+	} else {
+		echo '<p class="warning">'._('No versions to display').'</p>';
 	}
 }
 ?>

Modified: trunk/src/plugins/mantisbt/view/viewAttachment.php
===================================================================
--- trunk/src/plugins/mantisbt/view/viewAttachment.php	2011-03-04 11:43:34 UTC (rev 12564)
+++ trunk/src/plugins/mantisbt/view/viewAttachment.php	2011-03-04 12:14:53 UTC (rev 12565)
@@ -42,7 +42,7 @@
 	}
 
 	if (!isset($errorPage)){
-		echo '<h2 style="border-bottom: 1px solid black">'._('Attached files').'</h2>';
+		echo '<h2>'._('Attached files').'</h2>';
 		$boxTitle = 'Fichiers attachés (<a style="color:#FFFFFF;font-size:0.8em" href="?type='.$type.'&group_id='.$group_id.'&pluginname='.$mantisbt->name.'&idBug='.$idBug.'&view=addAttachment">Ajouter un fichier</a>)';
 		if (isset($defect->attachments) && count($defect->attachments) > 0) {
 			echo	'<table class="innertabs">';
@@ -67,27 +67,6 @@
 		}
 	}
 ?>
-<style>
-.notice_title {
-    background-color: #D7E0EB;
-    padding: 10px;
-    font-weight: bold;
-    margin-bottom:0px;
-    cursor: pointer;
-    color: #4F93C3;
-}
-
-.notice_content {
-    border: 1px solid #D7E0EB;
-    padding: 10px;
-    font-weight: bold;
-    -moz-border-radius-bottomright: 8px;
-    -moz-border-radius-bottomleft: 8px;
-    -webkit-border-bottom-right-radius: 8px;
-    -webkit-border-bottom-left-radius: 8px;
-    margin-top:0px;
-}
-</style>
 <script type="text/javascript">
     jQuery(document).ready(function() {
         jQuery("#expandable_file").hide();

Modified: trunk/src/plugins/mantisbt/view/viewIssue.php
===================================================================
--- trunk/src/plugins/mantisbt/view/viewIssue.php	2011-03-04 11:43:34 UTC (rev 12564)
+++ trunk/src/plugins/mantisbt/view/viewIssue.php	2011-03-04 12:14:53 UTC (rev 12565)
@@ -45,7 +45,7 @@
 
 if (!isset($errorPage)) {
     include('jumpToIssue.php');
-    echo "<h2 style='border-bottom: 1px solid black'>Détail du ticket #$idBug</h2>";
+    echo '<h2>'._('Ticket').' #'.$idBug.'</h2>';
 	echo	'<table>';
 	echo		'<tr style="background-color: gray;">';
 	echo 			'<td width="14%" >'._('Category').'</td>';
@@ -113,27 +113,6 @@
 	echo		'</tr>';
 	echo	'</table>';
 ?>
-<style>
-.notice_title {
-    background-color: #D7E0EB;
-    padding: 10px;
-    font-weight: bold;
-    margin-bottom:0px;
-    cursor: pointer;
-    color: #4F93C3;
-}
-
-.notice_content {
-    border: 1px solid #D7E0EB;
-    padding: 10px;
-    font-weight: bold;
-    -moz-border-radius-bottomright: 8px;
-    -moz-border-radius-bottomleft: 8px;
-    -webkit-border-bottom-right-radius: 8px;
-    -webkit-border-bottom-left-radius: 8px;
-    margin-top:0px;
-}
-</style>
 <script type="text/javascript">
     jQuery(document).ready(function() {
         jQuery("#expandable_edition").hide();

Modified: trunk/src/plugins/mantisbt/view/viewIssues.php
===================================================================
--- trunk/src/plugins/mantisbt/view/viewIssues.php	2011-03-04 11:43:34 UTC (rev 12564)
+++ trunk/src/plugins/mantisbt/view/viewIssues.php	2011-03-04 12:14:53 UTC (rev 12565)
@@ -61,30 +61,7 @@
 }
 
 if (!isset($errorPage)) {
-	echo '<h2 style="border-bottom: 1px solid black">'._('Filters'). '</h2>';
 ?>
-<style>
-.notice_title {
-	background-color: #D7E0EB;
-	padding: 10px;
-	font-weight: bold;
-	margin-bottom:0px;
-	cursor: pointer;
-	color: #4F93C3;
-}
-
-.notice_content {
-	border: 1px solid #D7E0EB;
-	padding: 10px;
-	font-weight: bold;
-	-moz-border-radius-bottomright: 8px;
-	-moz-border-radius-bottomleft: 8px;
-	-webkit-border-bottom-right-radius: 8px;
-	-webkit-border-bottom-left-radius: 8px;
-	margin-top:0px;
-}
-</style>
-
 <script type="text/javascript">
 	jQuery(document).ready(function() {
 	<?php
@@ -98,7 +75,7 @@
 		jQuery("#expandable_ticket").hide();
 	});
 </script>
-<p class="notice_title" onclick='jQuery("#expandable_filter").slideToggle(300)'><?php echo _('Display Filtering rules') ?></p>
+<p class="notice_title" onclick='jQuery("#expandable_filter").slideToggle(300)'><?php echo _('Display filter rules') ?></p>
 <div id='expandable_filter' class="notice_content" style='clear: both'>
 	<?php
 		include('mantisbt/controler/filter.php');
@@ -106,9 +83,6 @@
 </div>
 <br/>
 	<?php
-
-	echo '<h2 style="border-bottom: 1px solid black">'. _('Tickets') .'</h2>';
-
 	// recuperation des bugs
 	$listBug = array();
 	try {

Modified: trunk/src/plugins/mantisbt/view/viewNote.php
===================================================================
--- trunk/src/plugins/mantisbt/view/viewNote.php	2011-03-04 11:43:34 UTC (rev 12564)
+++ trunk/src/plugins/mantisbt/view/viewNote.php	2011-03-04 12:14:53 UTC (rev 12565)
@@ -40,7 +40,7 @@
 		$defect = $clientSOAP->__soapCall('mc_issue_get', array("username" => $username, "password" => $password, "issue_id" => $idBug));
 	}
 
-	echo '<h2 style="border-bottom: 1px solid black">'._('Notes').'</h2>';
+	echo '<h2>'._('Notes').'</h2>';
 
 	if (isset($defect->notes)){
 		echo    '<table>';
@@ -71,28 +71,6 @@
 		echo '<p class="warning">'._('No notes for this ticket').'</p>';
 	}
 ?>
-
-<style>
-.notice_title {
-    background-color: #D7E0EB;
-    padding: 10px;
-    font-weight: bold;
-    margin-bottom:0px;
-    cursor: pointer;
-    color: #4F93C3;
-}
-
-.notice_content {
-    border: 1px solid #D7E0EB;
-    padding: 10px;
-    font-weight: bold;
-    -moz-border-radius-bottomright: 8px;
-    -moz-border-radius-bottomleft: 8px;
-    -webkit-border-bottom-right-radius: 8px;
-    -webkit-border-bottom-left-radius: 8px;
-    margin-top:0px;
-}
-</style>
 <script type="text/javascript">
     jQuery(document).ready(function() {
         jQuery("#expandable_note").hide();

Added: trunk/src/plugins/mantisbt/www/style.css
===================================================================
--- trunk/src/plugins/mantisbt/www/style.css	                        (rev 0)
+++ trunk/src/plugins/mantisbt/www/style.css	2011-03-04 12:14:53 UTC (rev 12565)
@@ -0,0 +1,19 @@
+.notice_title {
+    background-color: #D7E0EB;
+    padding: 10px;
+    font-weight: bold;
+    margin-bottom:0px;
+    cursor: pointer;
+    color: #4F93C3;
+}
+
+.notice_content {
+    border: 1px solid #D7E0EB;
+    padding: 10px;
+    font-weight: bold;
+    -moz-border-radius-bottomright: 8px;
+    -moz-border-radius-bottomleft: 8px;
+    -webkit-border-bottom-right-radius: 8px;
+    -webkit-border-bottom-left-radius: 8px;
+    margin-top:0px;
+}
\ No newline at end of file

Modified: trunk/src/plugins/mantisbt/www/user/index.php
===================================================================
--- trunk/src/plugins/mantisbt/www/user/index.php	2011-03-04 11:43:34 UTC (rev 12564)
+++ trunk/src/plugins/mantisbt/www/user/index.php	2011-03-04 12:14:53 UTC (rev 12565)
@@ -47,8 +47,6 @@
 	$labelAttr[] = array();
 }
 
-
-
 echo $HTML->subMenu($labelTitle, $labelPage, $labelAttr);
 
 // page a afficher




More information about the Fusionforge-commits mailing list