Repository navigation
Expand file tree
/
Copy pathprojectspage.gsp
More file actions
176 lines (173 loc) · 5.13 KB
/
Copy pathprojectspage.gsp
File metadata and controls
176 lines (173 loc) · 5.13 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
<% include "header.gsp" %>
<% include "menu.gsp" %>
<div class="incubator-page-header">
<h2>${content.title}</h2>
<p>These tables are generated from the <span class="code">podlings.xml</span> file.
Please keep your project metadata up-to-date
(see <a href="https://incubator.apache.org/guides/mentor.html#initialize_podling_status_page">here</a> and
<a href="https://incubator.apache.org/guides/website.html#maintaining_status_files">here</a>).
</div>
<div class="container-fluid">
<div class="row">
<div class="col-lg-3 text-center"><a href="#current">List of Current Podlings</a></div>
<div class="col-lg-3 text-center"><a href="#graduated">Graduated Projects</a></div>
<div class="col-lg-3 text-center"><a href="#retired">Retired Podlings</a></div>
<div class="col-lg-3 text-center"><a href="/clutch/">Current Clutch Analysis</a></div>
</div>
</div>
<br/><br/>
<%
def source = new java.net.URL("http://svn.apache.org/repos/asf/incubator/public/trunk/content/podlings.xml")
def podlings = new groovy.util.XmlSlurper(false, false, true).parseText(source.text).children()
def sortedName = { it.@name.text().toLowerCase() }
%>
<h3 id="current"><img src="/images/redarrow.gif">Current Podlings</h3>
<div class="container-fluid">
<div class="row">
<table class="colortable">
<tr>
<th>Project</th>
<th>Aliases</th>
<th>Description</th>
<th>Sponsor (Champion)</th>
<th>Mentors</th>
<th>Start Date </th>
</tr>
<% podlings.toSorted(sortedName).each { podling ->
if (podling.@status == 'current') {
%>
<tr id="${podling.@resource}">
<td><a href="/projects/${podling.@resource}.html">${podling.@name}</a></td>
<td>${podling.@resourceAliases}</td>
<td>${podling.description}</td>
<td>${podling.@sponsor}
<% if ( podling.champion != "" ) { %>
<br/>(${podling.champion})
<% } %>
</td>
<td><%
def sep=""
podling.mentors.children().each { mentor ->
%>${sep}${mentor}<%
sep=", "
} %>
</td>
<td>${podling.@startdate}</td>
</tr>
<%
}
} %>
</table>
</div>
</div>
<h3 id="graduated"><img src="/images/redarrow.gif">Graduated Projects</h3>
<div class="container-fluid">
<div class="row">
<table class="colortable">
<tr>
<th>Project</th>
<th>Aliases</th>
<th>Description</th>
<th>Apache Sponsor</th>
<th>Mentors</th>
<th>Start Date </th>
<th>End Date </th>
</tr>
<% podlings.toSorted(sortedName).each { podling ->
if (podling.@status == 'graduated') {
%>
<tr id="${podling.@resource}">
<td><a href=/projects/${podling.@resource}.html>${podling.@name}</a>
<% if ( podling.resolution.@tlp == "true" ) { %>
<hr>
<img src="/images/redarrow.gif"><a href="https://${podling.@resource}.apache.org/">${podling.@name}</a>
<% } else if ( podling.resolution.@url != "" ) { %>
<hr>
<img src="/images/redarrow.gif"><a href="${podling.resolution.@url}"><%
if ( podling.resolution.@link != "" ) {
%>${podling.resolution.@link}</a><% } else { %>${podling.@name} <% }
} %>
</td>
<td>${podling.@resourceAliases}</td>
<td>${podling.description}
<% if ( podling.resolution != "" ) { %>
<hr>
${podling.resolution}
<% } %>
</td>
<td>${podling.@sponsor}
<% if ( podling.champion != "" ) { %>
<br/>(${podling.champion})
<% } %>
</td>
<td><%
sep=""
podling.mentors.children().each { mentor ->
%>${sep}${mentor}<%
sep=", "
} %>
</td>
<td>${podling.@startdate}</td>
<td>${podling.@enddate}</td>
</tr>
<%
}
} %>
</table>
</div>
</div>
<h3 id="retired"><img src="/images/redarrow.gif">Retired Podlings</h3>
<div class="container-fluid">
<div class="row">
<table class="colortable">
<tr>
<th>Project</th>
<th>Aliases</th>
<th>Description</th>
<th>Apache Sponsor</th>
<th>Mentors</th>
<th>Start Date </th>
<th>End Date </th>
</tr>
<% podlings.toSorted(sortedName).each { podling ->
if (podling.@status == 'retired') {
%>
<tr id="${podling.@resource}">
<td><a href=/projects/${podling.@resource}.html>${podling.@name}</a>
<% if ( podling.resolution.@url != "" ) { %>
<hr>
<img src="/images/redarrow.gif"><a href="${podling.resolution.@url}"><%
if ( podling.resolution.@link != "" ) {
%>${podling.resolution.@link}</a><% } else { %>${podling.@name} <% }
} %>
</td>
<td>${podling.@resourceAliases}</td>
<td>${podling.description}
<% if ( podling.resolution != "" ) { %>
<hr>
${podling.resolution}
<% } %>
</td>
<td>${podling.@sponsor}
<% if ( podling.champion != "" ) { %>
<br/>(${podling.champion})
<% } %>
</td>
<td><%
sep=""
podling.mentors.children().each { mentor ->
%>${sep}${mentor}<%
sep=", "
} %>
</td>
<td>${podling.@startdate}</td>
<td>${podling.@enddate}</td>
</tr>
<%
}
} %>
</table>
</div>
</div>
<br/><br/>
<% include "footer.gsp" %>