[evolvis-commits] r18711: use content attribute to keep gravatar’d tables sortable

mirabilos at evolvis.org mirabilos at evolvis.org
Mon Oct 8 14:43:03 CEST 2012


Author: mirabilos
Date: 2012-10-08 14:43:02 +0200 (Mon, 08 Oct 2012)
New Revision: 18711

Modified:
   trunk/gforge_base/evolvisforge-5.1/src/www/pm/browse_task.php
   trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php
Log:
use content attribute to keep gravatar’d tables sortable

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/pm/browse_task.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/pm/browse_task.php	2012-10-08 12:42:57 UTC (rev 18710)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/pm/browse_task.php	2012-10-08 12:43:02 UTC (rev 18711)
@@ -516,8 +516,15 @@
 			echo '<td class="separateRowsForPrinting">'. $pt_arr[$i]->getPercentComplete() .'%</td>';
 		if ($display_col['category']) 
 			echo '<td class="separateRowsForPrinting">'. util_html_secure($pt_arr[$i]->getCategoryName()) .'</td>';
-		if ($display_col['assigned_to'])
-			echo '<td class="separateRowsForPrinting">'. $pg->renderAssigneeList($pt_arr[$i]->getAssignedTo()) .'</td>';
+		if ($display_col['assigned_to']) {
+			$xt = $pt_arr[$i]->getAssignedTo();
+			echo html_e('td', array(
+				'class' => array(
+					'separateRowsForPrinting',
+				    ),
+				'content' => implode(':', $xt),
+			    ), $pg->renderAssigneeList($xt));
+		}
 		if ($display_col['priority'])
 			echo '<td class="separateRowsForPrinting">'. util_html_secure($pt_arr[$i]->getPriority()) .'</td>';
 		if ($display_col['status'])
@@ -533,9 +540,14 @@
 			} else {
 				$xt = util_html_secure($pt_arr[$i]->getSubmittedUnixName());
 			}
-			echo '<td class="separateRowsForPrinting" style="white-space:nowrap;" title="' .
-				util_html_secure($pt_arr[$i]->getSubmittedRealName()) .
-				'">' . $xt .'</td>';
+			echo html_e('td', array(
+				'class' => array(
+					'separateRowsForPrinting',
+				    ),
+				'style' => 'white-space:nowrap;',
+				'title' => $pt_arr[$i]->getSubmittedRealName(),
+				'content' => $pt_arr[$i]->getSubmittedUnixName(),
+			    ), $xt);
 		}
 		if ($display_col['duration'])
 			echo '<td class="separateRowsForPrinting">'. util_html_secure($pt_arr[$i]->getDuration()) .'</td>';

Modified: trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php
===================================================================
--- trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php	2012-10-08 12:42:57 UTC (rev 18710)
+++ trunk/gforge_base/evolvisforge-5.1/src/www/tracker/browse.php	2012-10-08 12:43:02 UTC (rev 18711)
@@ -797,6 +797,7 @@
 				}
 				echo html_e('td', array(
 					'title' => $art_arr[$i]->getAssignedRealName(),
+					'content' => $art_arr[$i]->getAssignedUnixName(),
 				    ), $xt);
 			} else if ($f == 'submitted_by') {
 				if (($xu = user_get_object($art_arr[$i]->getSubmittedBy())) &&
@@ -809,6 +810,7 @@
 				}
 				echo html_e('td', array(
 					'title' => $art_arr[$i]->getSubmittedRealName(),
+					'content' => $art_arr[$i]->getSubmittedUnixName(),
 				    ), $xt);
 			} else if ($f == 'close_date') {
 				$t = $art_arr[$i]->getCloseDate();



More information about the evolvis-commits mailing list