Index: modules/project_issue/project_issue.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.module,v
retrieving revision 1.79
diff -u -p -r1.79 project_issue.module
--- modules/project_issue/project_issue.module	17 Jan 2008 04:32:34 -0000	1.79
+++ modules/project_issue/project_issue.module	26 Jan 2008 01:22:21 -0000
@@ -846,14 +846,9 @@ function project_issue_user_page($arg = 
       'class' => 'project-issues',
     ),
     array('data' => t('Issue links'), 'class' => 'project-issue-links'),
-    array(
-      'data' => t('Project updated'),
-      'field' => 'n.changed',
-      'class' => 'project-project-updated',
-    ),
   );
   $default_states = implode(',', project_issue_default_states());
-  $result = db_query(db_rewrite_sql("SELECT n.nid, n.title, n.changed, COUNT(ni.nid) AS count, MAX(ni.changed) AS max_issue_changed FROM {node} n LEFT JOIN {project_issues} p ON n.nid = p.pid AND p.sid IN ($default_states) LEFT JOIN {node} ni ON ni.nid = p.nid AND ni.status = 1 WHERE n.type = 'project_project' AND n.status = 1 AND n.uid = %d GROUP BY n.nid, n.title, n.changed") . tablesort_sql($header), $user->uid);
+  $result = db_query(db_rewrite_sql("SELECT n.nid, n.title, COUNT(ni.nid) AS count, MAX(ni.changed) AS max_issue_changed FROM {node} n LEFT JOIN {project_issues} p ON n.nid = p.pid AND p.sid IN ($default_states) LEFT JOIN {node} ni ON ni.nid = p.nid AND ni.status = 1 WHERE n.type = 'project_project' AND n.status = 1 AND n.uid = %d GROUP BY n.nid, n.title") . tablesort_sql($header), $user->uid);
 
   if (!db_num_rows($result)) {
     return ($current_user ? t('You have no projects.') : t('This user has no projects.'));
@@ -865,6 +860,7 @@ function project_issue_user_page($arg = 
     $node_obj = node_load($node->nid);
     $node->is_admin = node_access('update', $node_obj);
     $node->issues = $node_obj->issues;
+    $node->releases = isset($node_obj->releases) ? $node_obj->releases : 0;
     if ($node->is_admin) {
       $any_admin = TRUE;
     }
@@ -892,7 +888,7 @@ function project_issue_user_page($arg = 
           'href' => "node/$node->nid/edit",
         ),
       );
-      if (module_exists('project_release')) {
+      if (module_exists('project_release') && $node->releases) {
         $project_links[] = array(
           'title' => t('Add release'),
           'href' => "node/add/project-release/$node->nid",
@@ -917,20 +913,7 @@ function project_issue_user_page($arg = 
           'data' => theme('links', $issue_links),
           'class' => 'project-issue-links',
         ),
-        array(
-          'data' => format_interval(time() - $node->changed, 2),
-          'class' => 'project-project-updated',
-        ),
       );
-      if ($node->is_admin) {
-        $row[] = array(
-          'data' => theme('links', $project_links),
-          'class' => 'project-project-links',
-        );
-      }
-      elseif ($any_admin) {
-        $row[] = array();
-      }
     }
     else {
       $row = array(
@@ -939,14 +922,27 @@ function project_issue_user_page($arg = 
           'class' => 'project-name',
         ),
         array(
-          'data' => t('Issue tracking is disabled for this project.'),
-          'colspan' => $any_admin ? '4' : '3',
-        ),
-        array(
-          'data' => l(t('Enable'), "node/$node->nid/edit/issues", array(), drupal_get_destination())
+          'data' => t('Issue tracking disabled.'),
+          'colspan' => $node->is_admin ? 2 : 3,
         ),
       );
+      if ($node->is_admin) {
+        $row[] = array(
+          'data' => l(t('Enable'), "node/$node->nid/edit/issues", array(), drupal_get_destination()),
+          'class' => 'project-issue-links',
+        );
+      }
     }
+    if ($node->is_admin) {
+      $row[] = array(
+        'data' => theme('links', $project_links),
+        'class' => 'project-project-links',
+      );
+    }
+    elseif ($any_admin) {
+      $row[] = array();
+    }
+
     $rows[] = $row;
     $query->projects[] = $node->nid;
   }
Index: modules/project_issue/project_issue.css
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/project_issue/project_issue.css,v
retrieving revision 1.19
diff -u -p -r1.19 project_issue.css
--- modules/project_issue/project_issue.css	20 Jan 2008 17:33:21 -0000	1.19
+++ modules/project_issue/project_issue.css	26 Jan 2008 01:22:22 -0000
@@ -70,24 +70,21 @@ table.projects {
   width: 100%;
 }
 table.projects .project-name {
-  width: 22%;
+  width: 27%;
 }
 table.projects .project-issue-updated {
-  width: 12%;
+  width: 15%;
 }
 table.projects .project-issues {
-  width: 9%;
+  width: 8%;
   text-align: right;
 }
 table.projects .project-issue-links {
-  width: 24%;
+  width: 28%;
   padding-left: 0.8em;
 }
-table.projects .project-project-updated {
-  width: 15%;
-}
 table.projects .project-project-links {
-  width: 18%;
+  width: 22%;
 }
 
 /* Issue query bar UI */
