Child: [6dee4b] (diff)

Download this file

project_list.html    69 lines (64 with data), 2.5 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!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>