[CS-Project-svn_notify] SF.net SVN: cs-project: [704] trunk
Brought to you by:
crazedsanity
From: <cra...@us...> - 2007-12-18 22:19:23
|
Revision: 704 http://cs-project.svn.sourceforge.net/cs-project/?rev=704&view=rev Author: crazedsanity Date: 2007-12-18 14:19:20 -0800 (Tue, 18 Dec 2007) Log Message: ----------- Display ancestry link list instead of just project name on summary (#101). Modified Paths: -------------- trunk/includes/content/summary.inc trunk/templates/content/summary/index.content.tmpl Modified: trunk/includes/content/summary.inc =================================================================== --- trunk/includes/content/summary.inc 2007-12-18 22:09:28 UTC (rev 703) +++ trunk/includes/content/summary.inc 2007-12-18 22:19:20 UTC (rev 704) @@ -130,7 +130,6 @@ function process_row(&$page, $projectArr, $expandArr, $baseRow, $level=0) { //loop through the array... $linkLevel = $level+1; - //pre-pad subprojects, so they appear indented. if($level > 0) { @@ -140,7 +139,16 @@ } } if(is_array($projectArr)) { + + $projObj = new projectClass($page->db); + foreach($projectArr as $id=>$subArr) { + + $subArr['linkList'] = $projObj->get_ancestry_link_list($id); + if(!strlen($subArr['linkList'])) { + $subArr['linkList'] = $subArr['name']; + } + //parse stuff into the template row... $rowColor1 = swapValue($rowColor1, "rgb(213, 213, 213)", "rgb(194, 194, 194)"); $rowColor2 = swapValue($rowColor2,"#D5D5D5", "#C2C2C2"); Modified: trunk/templates/content/summary/index.content.tmpl =================================================================== --- trunk/templates/content/summary/index.content.tmpl 2007-12-18 22:09:28 UTC (rev 703) +++ trunk/templates/content/summary/index.content.tmpl 2007-12-18 22:19:20 UTC (rev 704) @@ -21,7 +21,7 @@ onmouseout="this.style.backgroundColor ='%%rowColor2%%'" onclick="location.href = '/content/project/view?ID=%%id%%'"> - <td><a href="/content/project/view/?ID=%%id%%">%%name%%</a> </td> + <td><a href="/content/project/view/?ID=%%id%%">%%linkList%%</a> </td> <td>%%status_text%% </td> <td align="right" nowrap>%%progress%%%</td> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |