Permalink
Browse files

Started working on project list and time dashboard

  • Loading branch information...
1 parent 7b76904 commit dfc9ec0a8e8739d738d1bc516405e4c206964305 Filippo committed Jun 19, 2010
Showing 1,491 changed files with 280,426 additions and 319 deletions.
View
@@ -9,7 +9,7 @@ default:
#language: en
#robots: index, follow
- stylesheets: [schematic/grid.css, schematic/reset.css, schematic/typography.css, custom.css, custom-update.css, custom-prod.css]
+ stylesheets: [schematic/grid.css, schematic/reset.css, schematic/typography.css, schematic/forms.css, custom.css, custom-update.css, custom-prod.css]
#javascripts: [jquery-1.3.1.min.js, jquery-ui-sortable-1.6rc6.min.js]
javascripts: [jquery-1.4.2.min.js, jquery-ui-1.8.custom.min.js]
@@ -188,6 +188,24 @@ public function isMyProfile($id)
return $this->isAdmin() ? true : ($id == $this->getGuardUser()->getId());
}
+ public function retrieveNumberOfMyOpenIssueByProject($project_id)
+ {
+ $query = Doctrine::getTable('Issue')->getQueryForUserIssues($this->getProfile()->getId());
+ return $query->
+ addWhere('(s.status_type = ? OR s.status_type = ? )', array('new', 'assigned'))->
+ addWhere('(i.project_id = ?)', array($project_id))->
+ count();
+ }
+
+ public function retrieveMyClosedIssueByProject($project_id)
+ {
+ $query = Doctrine::getTable('Issue')->getQueryForUserIssues($this->getProfile()->getId());
+ return $query->
+ addWhere('(s.status_type = ? OR s.status_type = ? )', array('closed', 'invalid'))->
+ addWhere('(i.project_id = ?)', array($project_id))->
+ count();
+ }
+
public function retrieveMyLateIssues()
{
return Doctrine::getTable('Issue')->getLateIssuesForUserByProfileId($this->getProfile()->getId());
View
Binary file not shown.
View
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>Dev-phpCollab3-Google</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>com.aptana.ide.editor.php.aptanaPhpBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>com.aptana.ide.editor.php.phpnature</nature>
+ </natures>
+</projectDescription>
Oops, something went wrong.

0 comments on commit dfc9ec0

Please sign in to comment.