public function format($light = FALSE)
 {
     $extend = $this->_notice->project_extends;
     $comment = '';
     if (!empty($extend)) {
         $extend = json_decode($extend, TRUE);
         $comment = $extend['comment'];
     }
     echo View::render('notice/notice_project_comment' . ($light ? '_light' : ''), ['notice' => $this->_notice, 'comment' => $comment], TRUE);
 }
 public function format($light = FALSE)
 {
     $action = '';
     $extend = $this->_notice->workflow_extends;
     if (!empty($extend)) {
         $extend = json_decode($extend, TRUE);
         if (isset($extend['status'])) {
             $action .= '状态变更为 ' . $extend['status'];
         }
     }
     echo View::render('notice/notice_workflow' . ($light ? '_light' : ''), ['notice' => $this->_notice, 'action' => $action], TRUE);
 }
function registerFunction()
{
    Loader::helper('Url');
    \Foundation\Support\Facades\View::registerFunction('baseUrl', 'baseUrl');
}
 public function format($light = FALSE)
 {
     echo View::render('notice/notice_star' . ($light ? '_light' : ''), ['notice' => $this->_notice], TRUE);
 }
 public function document($userName, $projectName)
 {
     View::render('project_document', array('pageName' => 'project_document', 'account' => $this->account, 'project' => $this->project));
 }
 public function createProject()
 {
     $currentAccount = Request::getParameter('currentAccount');
     View::render('create_project', ['pageName' => 'create_project', 'account' => $currentAccount]);
 }