/** * List repositories * * @param null * @return void */ function index() { if (Repository::canAdd($this->logged_user, $this->active_project)) { $this->wireframe->addPageAction(lang('Add Repository'), source_module_add_repository_url($this->active_project)); } // if $repositories = Repositories::findByProjectId($this->active_project->getId()); $this->smarty->assign(array('repositories' => Repositories::findByProjectId($this->active_project->getId()))); }
/** * List of repositories * */ function index() { $this->addBreadcrumb(lang('List')); $repositories = Repositories::findByProjectId($this->active_project->getId()); $this->smarty->assign(array('repositories' => $repositories, 'page_back_url' => assemble_url('mobile_access_view_project', array('project_id' => $this->active_project->getId())))); }