public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null) { $rootEntity = $controller->getMembership()->getItem(); $this->repository->setRootEntity($rootEntity); $this->settingsRepository->setRootEntity($rootEntity); return $this->templating->render('WioEdkBundle:Extension:route-summary.html.twig', ['routeNum' => $this->repository->countRoutes(), 'participantNum' => $this->settingsRepository->countParticipants()]); }
public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null) { $this->repository->setArea($controller->getMembership()->getItem()); return $controller->renderView('CantigaCourseBundle:Extension:course-summary.html.twig', ['progress' => $this->repository->findProgress()]); }
public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null) { $entity = $controller->getMembership()->getItem()->getEntity(); return $this->templating->render('CantigaMilestoneBundle:Dashboard:milestone-progress.html.twig', ['progress' => $this->repository->computeTotalProgress($entity, $project), 'incomingDeadline' => $this->repository->findClosestDeadline($entity, $project), 'milestoneEditorPage' => lcfirst($entity->getType()) . '_milestone_editor']); }
public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null) { $item = $controller->getMembership()->getItem(); $this->repository->setRootEntity($item); return $this->templating->render('WioEdkBundle:Extension:recent-routes.html.twig', ['routeInfoPath' => lcfirst($item->getEntity()->getType()) . '_route_info', 'routes' => $this->repository->getRecentlyChangedRoutes(5)]); }
public function render(CantigaController $controller, Request $request, Workspace $workspace, Project $project = null) { $area = $controller->getMembership()->getItem(); return $this->templating->render('CantigaCoreBundle:Area:area-summary.html.twig', ['area' => $area, 'bgcolor' => $this->translateColor($area)]); }