<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="master.html" />
<?python from allura.lib.security import has_project_access ?>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type" py:replace="''"/>
<title>$title</title>
<style type="text/css">
#section .base .pad{
background-color: inherit;
border-radius: 0;
-moz-border-radius: 0;
-webkit-border-radius: 0;
box-shadow: rgba(0,0,0, 0) 0 0 0;
-moz-box-shadow: rgba(0,0,0, 0) 0 0 0;
-webkit-box-shadow: rgba(0,0,0, 0) 0 0 0;
}
</style>
</head>
<body>
<h1 class="title">$title</h1>
<div class="content">
<div class="row">
<div class="column grid_12">
<?python old_project = c.project ?>
<py:def function="project(n, subprojects)">
<div style="clear:both;"><a href="${n.url()}"><font size="+2">${n.name}</font></a></div>
<div class="list" style="clear:both">
<py:for each="p in subprojects">
<?python g.set_project(p.shortname)?>
<py:if test="has_project_access('read', p)()">
${c.project_summary.display(value=p)}
</py:if>
</py:for>
</div>
</py:def>
<py:if test="text">${Markup(text)}</py:if>
<p py:if="not len(projects)">No projects found</p>
<div py:if="len(projects)">
<py:if test="len(projects) and isinstance(projects[0], tuple)">
<py:for each="n, subprojects in projects">
${project(n, subprojects)}
</py:for>
</py:if>
<py:if test="len(projects) and not isinstance(projects[0], tuple)">
<div class="list">
<py:for each="project in projects">
<?python g.set_project(project.shortname)?>
<py:if test="has_project_access('read', project)()">
${c.project_summary.display(value=project)}
</py:if>
</py:for>
</div>
</py:if>
</div>
<?python g.set_project(old_project and old_project.shortname or '')?>
</div>
</div>
</div>
</body>
</html>