diff --git a/module/block/control.php b/module/block/control.php index b14d058819..13ad92372a 100644 --- a/module/block/control.php +++ b/module/block/control.php @@ -1450,7 +1450,12 @@ class block extends control public function printProgramteamBlock() { - + $this->loadModel('project'); + + $num = isset($this->params->num) ? (int)$this->params->num : 15; + + /* Get projects. */ + $this->view->programs = $this->loadModel('program')->getUserPrograms('all', 'id_desc', $num); } /** diff --git a/module/block/view/programteamblock.html.php b/module/block/view/programteamblock.html.php index e69de29bb2..3d863a5698 100644 --- a/module/block/view/programteamblock.html.php +++ b/module/block/view/programteamblock.html.php @@ -0,0 +1,24 @@ + +
repo->maintain . ': ';?> |
+ + |
+ design->commitDate . ':';?>+ + ~ + + |
+