headTitle()->set($title); $canDelete = $this->permissions()->isOne(array('admin', 'member' => $project)); $baseUrl = $this->escapeFullUrl($this->basePath()); // scope name/branches editing restrictions to edit mode only $canEditName = !$isEdit || $canEditName; $canEditBranches = !$isEdit || $canEditBranches; // when editing, we like to show the toolbar and sidebar if ($isEdit) { echo $this->projectToolbar($project); echo '