websvn |
Subversion Repositories: |
Rev 1 | Rev 3 | |
---|---|---|
Line 40... | Line 40... | |
$projects = $config->getRepositories(); |
$projects = $config->getRepositories(); | |
$i = 0; |
$i = 0; | |
$listing = array(); |
$listing = array(); | |
foreach ($projects as $project) { |
foreach ($projects as $project) { | |
if ($project->hasReadAccess("/", true)) { |
if ($project->hasReadAccess("/", true)) { | |
$url = $config->getURL($project, "/", "dir"); |
$url = $config->getURL($project, '', 'dir'); | |
|
| |
$listing[$i]["rowparity"] = $i % 2; |
$listing[$i]["rowparity"] = $i % 2; | |
$listing[$i]["projlink"] = "<a href=\"${url}\">".$project->getDisplayName()."</a>"; |
$listing[$i]["projlink"] = "<a href=\"${url}\">".$project->getDisplayName()."</a>"; | |
$i++; |
$i++; | |
} |
} | |
Line 83... | Line 83... | |
$listing[$i] = array(); |
$listing[$i] = array(); | |
} |
} | |
|
| |
$listing[$i]["isgrouphead"] = false; |
$listing[$i]["isgrouphead"] = false; | |
$listing[$i]["isprojlink"] = true; |
$listing[$i]["isprojlink"] = true; | |
$url = $config->getURL($project, "/", "dir"); |
$url = $config->getURL($project, '', 'dir'); | |
$listing[$i]["listitem"] = "<a href=\"${url}\">".$project->name."</a>\n"; |
$listing[$i]["listitem"] = "<a href=\"${url}\">".$project->name."</a>\n"; | |
|
| |
$listing[$i]["rowparity"] = $parity % 2; |
$listing[$i]["rowparity"] = $parity % 2; | |
$parity++; |
$parity++; | |
|
| |
Line 105... | Line 105... | |
$vars["flatview"] = false; |
$vars["flatview"] = false; | |
$vars["treeview"] = true; |
$vars["treeview"] = true; | |
$vars["opentree"] = $config->openTree; |
$vars["opentree"] = $config->openTree; | |
} |
} | |
|
| |
$vars['indexurl'] = $config->getURL($rep, '', 'index'); |
if (!$config->multiViews) { | |
$vars['indexurl'] = $config->getURL($rep, '', 'index'); | ||
} | ||
|
| |
$vars["version"] = $version; |
$vars["version"] = $version; | |
parseTemplate($config->getTemplatePath()."header.tmpl", $vars, $listing); |
parseTemplate($config->getTemplatePath()."header.tmpl", $vars, $listing); | |
parseTemplate($config->getTemplatePath()."index.tmpl", $vars, $listing); |
parseTemplate($config->getTemplatePath()."index.tmpl", $vars, $listing); | |
parseTemplate($config->getTemplatePath()."footer.tmpl", $vars, $listing); |
parseTemplate($config->getTemplatePath()."footer.tmpl", $vars, $listing); |