sortByGroup(); if ($config->flatIndex) { // Create the flat view $projects = $config->getRepositories(); $i = 0; $listing = array(); foreach ($projects as $project) { if ($project->hasReadAccess("/", true)) { $url = $config->getURL($project, '', 'dir'); $listing[$i]["rowparity"] = $i % 2; $listing[$i]["projlink"] = "".$project->getDisplayName().""; $i++; } } $vars["flatview"] = true; $vars["treeview"] = false; } else { // Create the tree view $projects = $config->getRepositories(); reset($projects); $i = 0; $listing = array(); $curgroup = NULL; $parity = 0; foreach ($projects as $project) { if ($project->hasReadAccess("/", true)) { $listing[$i] = array(); if ($curgroup != $project->group) { // TODO: this should be de-soupified if (!empty($curgroup)) { // Close the switchcontent div $listing[$i]["listitem"] = "\n"; } else { $listing[$i]["listitem"] = ""; } $listing[$i]["isprojlink"] = false; $listing[$i]["isgrouphead"] = true; $curgroup = $project->group; $id = strtr(base64_encode('grp'.$curgroup), array('+' => '-', '/' => '_', '=' => '')); $listing[$i]["listitem"] .= "
websvn |
Subversion Repositories: |
Line No. | Rev | Author | Line |
---|