incubator-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject [incubator] branch master updated: Template updates - projects page and clutch link
Date Thu, 21 Mar 2019 15:34:58 GMT
This is an automated email from the ASF dual-hosted git repository.

wave pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator.git


The following commit(s) were added to refs/heads/master by this push:
     new 4fcba30  Template updates - projects page and clutch link
4fcba30 is described below

commit 4fcba30980645710674d3c8ba2d5cde6e081a6e9
Author: Dave Fisher <dave@davefisher.tech>
AuthorDate: Thu Mar 21 08:34:54 2019 -0700

    Template updates - projects page and clutch link
---
 templates/homepage.gsp     |   1 +
 templates/projectspage.gsp | 169 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 170 insertions(+)

diff --git a/templates/homepage.gsp b/templates/homepage.gsp
index 24faacb..ab78b5e 100644
--- a/templates/homepage.gsp
+++ b/templates/homepage.gsp
@@ -30,6 +30,7 @@ Our Current Podlings:
         <div class="col-lg-4 text-center"><a href="/projects/#current">List of
Current Podlings</a></div>
         <div class="col-lg-4 text-center"><a href="/projects/#graduated">Graduated
Projects</a></div>
         <div class="col-lg-4 text-center"><a href="/projects/#retired">Retired
Podlings</a></div>
+        <div class="col-lg-4 text-center"><a href="/clutch/">Current Clutch Analysis</a></div>
     </div>
 </div>
 <br/><br/>
diff --git a/templates/projectspage.gsp b/templates/projectspage.gsp
new file mode 100644
index 0000000..4677897
--- /dev/null
+++ b/templates/projectspage.gsp
@@ -0,0 +1,169 @@
+<% 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-4 text-center"><a href="#current">List of Current
Podlings</a></div>
+        <div class="col-lg-4 text-center"><a href="#graduated">Graduated Projects</a></div>
+        <div class="col-lg-4 text-center"><a href="#retired">Retired Podlings</a></div>
+        <div class="col-lg-4 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()
+%>
+<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>Description</th>
+	   <th>Sponsor (Champion)</th>
+	   <th>Mentors</th>
+	   <th>Start&nbsp;Date&nbsp;</th>
+	</tr>
+        <% podlings.each { podling ->
+            if (podling.@status == 'current') {
+        %>
+        <tr id="${podling.@resource}">
+	   <td><a href="/projects/${podling.@resource}.html">${podling.@name}</a></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>Description</th>
+	   <th>Apache Sponsor</th>
+	   <th>Mentors</th>
+	   <th>Start&nbsp;Date&nbsp;</th>
+	   <th>End&nbsp;Date&nbsp;&nbsp;&nbsp;</th>
+	</tr>
+        <% podlings.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.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>Description</th>
+	   <th>Apache Sponsor</th>
+	   <th>Mentors</th>
+	   <th>Start&nbsp;Date&nbsp;</th>
+	   <th>End&nbsp;Date&nbsp;&nbsp;&nbsp;</th>
+	</tr>
+        <% podlings.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.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" %>


---------------------------------------------------------------------
To unsubscribe, e-mail: cvs-unsubscribe@incubator.apache.org
For additional commands, e-mail: cvs-help@incubator.apache.org


Mime
View raw message