public function index() { $title = $GLOBALS['Language']->getText('admin_main', 'configure_access_controls'); $params = array('title' => $title); $renderer = TemplateRendererFactory::build()->getRenderer($this->getTemplateDir()); $this->response->includeFooterJavascriptFile('/scripts/tuleap/admin-access-mode.js'); $this->response->header($params); $renderer->renderToPage(self::TEMPLATE, new ForgeAccess_AdminPresenter($this->csrf, $title, $this->localincfinder->getLocalIncPath(), ForgeConfig::get(ForgeAccess::CONFIG), count($this->user_dao->searchByStatus(PFUser::STATUS_RESTRICTED)), ForgeConfig::get(User_ForgeUGroup::CONFIG_AUTHENTICATED_LABEL), ForgeConfig::get(User_ForgeUGroup::CONFIG_REGISTERED_LABEL), ForgeConfig::get(ForgeAccess::PROJECT_ADMIN_CAN_CHOOSE_VISIBILITY), ForgeConfig::get(ForgeAccess::REVERSE_PROXY_REGEXP))); $this->response->footer($params); }
public function index() { $title = $GLOBALS['Language']->getText('admin_main', 'configure_homepage'); $params = array('title' => $title); $renderer = TemplateRendererFactory::build()->getRenderer($this->getTemplateDir()); $headlines = $this->getHeadlines(); $this->response->includeFooterJavascriptFile('/scripts/tuleap/admin-homepage.js'); $this->response->header($params); $renderer->renderToPage(self::TEMPLATE, new Admin_Homepage_Presenter($this->csrf, $title, $this->dao->isStandardHomepageUsed(), $headlines)); $this->response->footer($params); }
public function index(CSRFSynchronizerToken $csrf, Response $response) { $title = $GLOBALS['Language']->getText('plugin_tracker_config', 'title'); $params = array('title' => $title); $renderer = TemplateRendererFactory::build()->getRenderer(TRACKER_TEMPLATE_DIR); $response->header($params); $renderer->renderToPage(self::$TEMPLATE, new TrackerPluginConfigPresenter($csrf, $title, $this->localincfinder->getLocalIncPath(), $this->config)); $response->footer($params); }