示例#1
0
 public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null)
 {
     if ($controller->getProjectSettings()->get(CoreSettings::DASHBOARD_SHOW_CHAT)->getValue()) {
         $this->repository->setActiveProject($project);
         return $this->templating->render('CantigaCoreBundle:Project:recent-comments.html.twig', ['comments' => $this->repository->getRecentFeedbackActivity(8)]);
     }
     return '';
 }
 public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null)
 {
     if ($controller->getProjectSettings()->get(CoreSettings::DASHOBARD_SHOW_REQUESTS)->getValue()) {
         $this->repository->setActiveProject($project);
         return $this->templating->render('CantigaCoreBundle:Project:recent-area-requests.html.twig', ['requests' => $this->repository->getRecentRequests(5)]);
     }
     return '';
 }