[jboss-svn-commits] JBL Code SVN: r7744 - in labs/jbosslabs/trunk/cms-template/default: podcast primates

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Nov 21 13:51:28 EST 2006


Author: adamw
Date: 2006-11-21 13:51:23 -0500 (Tue, 21 Nov 2006)
New Revision: 7744

Added:
   labs/jbosslabs/trunk/cms-template/default/podcast/podcast_small.jsp
   labs/jbosslabs/trunk/cms-template/default/primates/mugshot.jsp
Modified:
   labs/jbosslabs/trunk/cms-template/default/podcast/podcast.jsp
   labs/jbosslabs/trunk/cms-template/default/primates/primates.jsp
Log:
CMS template fixes

Modified: labs/jbosslabs/trunk/cms-template/default/podcast/podcast.jsp
===================================================================
--- labs/jbosslabs/trunk/cms-template/default/podcast/podcast.jsp	2006-11-21 17:46:34 UTC (rev 7743)
+++ labs/jbosslabs/trunk/cms-template/default/podcast/podcast.jsp	2006-11-21 18:51:23 UTC (rev 7744)
@@ -1,48 +1,64 @@
- <%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
 <%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="n" %>
 <%@ taglib uri="/WEB-INF/tld/forge.tld" prefix="forge" %>
 <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
 <%@ page isELIgnored ="false" %>
 <portlet:defineObjects/>
 <link rel="stylesheet" href="/file-access/default/members/default/downloads/podcasts.css" type="text/css" media="all">
-<h1>JBoss Labs Podcasts</h1>
-<div class="primates-entry">
-JBoss Labs Podcasts is striving to give a face to all the professional open source developers who work hard every day to create the software you use.  Here in our JBoss Labs Podcasts, we provide audio and video to introduce the developers behind the scenes and give you a chance to hear how to use their software from the creators themselves.
-<table class="infotable" cellspacing="5" style="font-size:90%; padding:2px; margin: 2px;">
+<h1>JBoss Podcasts</h1>
+<hr>
+<p> JBoss Labs Podcasts is striving to give a face to all the professional open source developers who work hard every day to create the software you use. Here in our JBoss Labs Podcasts, we provide audio and video to introduce the developers behind the scenes and give you a chance to hear how to use their software from the creators themselves.
+<p>Subscribe to our podcasts here: <a href="/feeds/jbosslabs/podcast/rss2"> <img src="/file-access/default/theme/images/but_feed_rss.gif" width="26" height="16" border="0" align="center" /> </a> <a href="/feeds/jbosslabs/podcast/atom"> <img src="/file-access/default/theme/images/but_feed_atom.gif" width="31" height="16" border="0" align="center" /> </a> <a href="/feeds/jbosslabs/podcast/rdf"> <img src="/file-access/default/theme/images/but_feed_rdf.gif" width="28" height="16" border="0" align="center" /> </a> </p>
+
+Or, if you are an iTunes user, you can <a href="http://phobos.apple.com/WebObjects/MZStore.woa/wa/viewPodcast?id=98268981">subscribe using iTunes.</a>
+<p>&nbsp;</p>
+<h2>Latest Podcasts:</h2>
+<table border="0" cellspacing="0" class="datatable">
   <tr>
-    <th width="15" class="blank"></th>
-    <th width="80" class="grey">channel</th>
-    <th width="80" class="grey">title</th>
-    <th width="200" class="grey">description</th>
-    <th width="60" class="grey">date</th>
-    <th width="60" class="grey">enclosure</th>
+    <td class="header">Channel</td>
+    <td class="header">Title</td>
+    <td class="header">Description</td>
+    <td class="header">Enclosure</td>
+    <td class="header">Date</td>
   </tr>
   <n:iterate ctx="podcast">
   <tr>
 
-     <td>${n:out("podcast.no")}.</td>
+    <td class="descFirst">
+       <a href=${n:out("podcast.channel-link")}>
+	  <n:if ctx="channel-hasImage">
+	     <img src="${n:out("podcast.channel-image")}" border=0 width=80
+	          alt="${n:out("podcast.channel-title")}">
+	  </n:if>
+	  <n:if ctx="channel-hasNotImage">${n:out("podcast.channel-title")}</n:if>
+       </a>
 
-    <td>
-       <a href=${n:out("podcast.channel-link")}>${n:out("podcast.channel-title")}</a>
+       
     </td>
 
-    <td>
+    <td class="descFirst">
        <a href=${n:out("podcast.link")}>${n:out("podcast.title")}</a>
     </td>
 
-    <td>${n:out("podcast.description")}</td>
+    <td class="descFirst">
+       ${n:out("podcast.description")}<p>
+    </td>
 
-    <td>${n:out("podcast.date")}</td>
+    <td class="descFirst">
+        <n:if ctx="hasImage">
+	      <a href=${n:out("podcast.enclosure-link")}><img src="${n:out("podcast.image")}" border=0 width=180></a>
+	</n:if>
+<!--	<n:if ctx="hasNotImage"><br><center>(photo not available)</center></n:if> -->
+	<p><a href=${n:out("podcast.enclosure-link")}>
+            ${n:out("podcast.enclosure-type")}&nbsp
+<!--	    ${n:out("podcast.duration")}&nbsp -->
+	    (${n:out("podcast.enclosure-size")} MB)
+	</a></p>
+    </td>
 
-     <td>
-         <a href=${n:out("podcast.enclosure-link")}>
-            ${n:out("podcast.enclosure-type")}
-	    <br>(${n:out("podcast.enclosure-size")} MB)
-	 </a>
-     </td>
+    <td class="descFirst">${n:out("podcast.date")}</td>
 
   </tr>
   </n:iterate>
 </table>
 </div>
-

Added: labs/jbosslabs/trunk/cms-template/default/podcast/podcast_small.jsp
===================================================================
--- labs/jbosslabs/trunk/cms-template/default/podcast/podcast_small.jsp	2006-11-21 17:46:34 UTC (rev 7743)
+++ labs/jbosslabs/trunk/cms-template/default/podcast/podcast_small.jsp	2006-11-21 18:51:23 UTC (rev 7744)
@@ -0,0 +1,41 @@
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="n" %>
+<%@ taglib uri="/WEB-INF/tld/forge.tld" prefix="forge" %>
+<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+<%@ page isELIgnored ="false" %>
+<portlet:defineObjects/>
+
+<div class="spotbox" id="podcast">
+  <h3>Latest Podcast</h3>
+  <div><hr></div>
+
+	<div>
+  <n:iterate ctx="latest">
+    		<a href=${n:out("latest.link")}><br>
+        <n:if ctx="hasImage">
+	        <img src="${n:out("latest.image")}" border=0 width=180>
+	     </n:if>
+	  <n:iterate ctx="hasNotImage">
+	     <!-- If screenshot is not available show channel image (if feed has one) -->
+	     <n:if ctx="channel-hasImage">
+	       <img src="${n:out("podcast.channel-image")}" border=0 width=180
+	            alt="(photo not available)">
+	     </n:if>
+	     <n:if ctx="channel-hasNotImage"><br><center>(photo not available)</center></n:if>
+	  </n:iterate>
+	 </a>
+	</div>
+  	<h4><a href=${n:out("latest.link")}>${n:out("latest.title")}</a></h4>
+	<p>       ${n:out("latest.description")} </p>
+	<div class= "moreinfopadding"><a class="spotboxlinkarrow" href="${n:out("latest.enclosure-link")}">(${n:out("latest.enclosure-type")} ${n:out("latest.duration")} ${n:out("latest.enclosure-size")} MB) </a></div>
+  </n:iterate>
+    <hr>
+	 <div><a class="spotboxlinkarrow" href="/podcast">All Podcasts</a></div>
+
+<table border="0" class="podcastfeed">
+  <tr> <td><a href="/feeds/jbosslabs/podcast/rss2"><img src="/file-access/default/theme/images/but_feed_rss.gif" alt="RSS Feed" border="0"></a></td>
+    <td><a href="/feeds/jbosslabs/podcast/atom"><img src="/file-access/default/theme/images/but_feed_atom.gif" alt="Atom Feed" border="0"></a></td>
+   <td><a href="/feeds/jbosslabs/podcast/rdf"><img src="/file-access/default/theme/images/but_feed_rdf.gif" alt="RDF Feed" border="0"></a></td> </tr>
+</table>
+
+</div>

Added: labs/jbosslabs/trunk/cms-template/default/primates/mugshot.jsp
===================================================================
--- labs/jbosslabs/trunk/cms-template/default/primates/mugshot.jsp	2006-11-21 17:46:34 UTC (rev 7743)
+++ labs/jbosslabs/trunk/cms-template/default/primates/mugshot.jsp	2006-11-21 18:51:23 UTC (rev 7744)
@@ -0,0 +1,34 @@
+<!--
+  JBoss, the OpenSource J2EE webOS
+  Distributable under LGPL license.
+  See terms of license at gnu.org. 
+ -->
+<%@ page language="java" extends="org.jboss.portal.core.servlet.jsp.PortalJsp" %>
+<%@ taglib uri="/WEB-INF/tld/portlet.tld" prefix="n" %>
+ <%@ taglib uri="/WEB-INF/tld/forge.tld" prefix="forge" %>
+ <%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>
+<%@ page import="org.jboss.portal.core.servlet.jsp.taglib.PortalLib" %>
+ <%@ page isELIgnored ="false" %>
+ <portlet:defineObjects/>
+
+<div class="spotbox" id="devspot">
+	<h3>Developer Spotlight</h3>
+   <div><hr></div>
+
+<n:iterate ctx="primate">
+					<div>
+					  <p><a href="/portal/community#<%= PortalLib.out("primate.name").replaceAll("\\W","")%>">
+						  <img src="<forge:imagePath src="${n:out('primate.mugshot')}" />" border="0" /></a>
+					  </p>
+                 <p>&nbsp;</p>
+               </div>
+					<h4>${n:out('primate.name')}</h4>
+               <p>Country: ${n:out("primate.country")}</br>
+         		Title: ${n:out('primate.title')}</br>
+               Status: ${n:out("primate.status")}</p>
+               <p>bio: ${n:out('primate.bio')}</p>
+					<div class="moreinfopadding"><a class="spotboxlinkarrow" href="/portal/community#<%= PortalLib.out("primate.name").replaceAll("\\W","")%>">More info</a> </div>
+					<hr>
+					<div><a class="spotboxlinkarrow" href="/portal/community">All Developers</a></div>
+</n:iterate> 
+</div>

Modified: labs/jbosslabs/trunk/cms-template/default/primates/primates.jsp
===================================================================
--- labs/jbosslabs/trunk/cms-template/default/primates/primates.jsp	2006-11-21 17:46:34 UTC (rev 7743)
+++ labs/jbosslabs/trunk/cms-template/default/primates/primates.jsp	2006-11-21 18:51:23 UTC (rev 7744)
@@ -10,56 +10,47 @@
 <%@ page import="org.jboss.portal.core.servlet.jsp.taglib.PortalLib" %>
  <%@ page isELIgnored ="false" %>
  <portlet:defineObjects/>
- <link rel="stylesheet" href="/file-access/default/members/default/downloads/primates.css" type="text/css" media="all">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>JBoss Developers Community</title>
+<link href="common.css" rel="stylesheet" type="text/css">
+</head>
+<body>
+  <h1>JBoss Developer Community </h1>
+  <p>Learn more about our the great developers that make up the JBoss Community. The tremendous depth of knowledge and broad skill sets of these skilled developers help drive our open source community in bold new directions.</p>
+  <hr>
 
-<h1>JBoss Community Developer Spotlight:</h1>
 
 
+<n:if ctx="button">
 <a href="<portlet:renderURL />" ><img src="<forge:imagePath src="primates/images/buttons/randomPrimate.jpg"  />" border="0" /></a>
 
 <a href="<portlet:renderURL />&render=all" ><img src="<forge:imagePath src="primates/images/buttons/allPrimates.jpg" />"  border="0" /></a>
+</n:if>
 
-
 <n:iterate ctx="primate">
-<a name="<%= PortalLib.out("primate.name").replaceAll("\\W","")%>"></a>
-<div class="primates-entry">
-	<table>
-	<!-- iterated menuentry -->
-			
-			
-			<tr>
-				<td><img src="<forge:imagePath src="${n:out('primate.mugshot')}" />" border="0" /></td>
-				<td>
-					<table>
-						<tr><td><b>${n:out('primate.name')}</b> - <i><font color="green">Country:</font></i> ${n:out("primate.country")}, <i><font color="green">Title: </font></i>${n:out('primate.title')}, <font color="green"><i>Status:</i> </font>  ${n:out("primate.status")}</td><td style="text-align: left">[<a href="<n:renderURL />&render=all#<%= PortalLib.out("primate.name").replaceAll("\\W","")%>">Permlink</a>]</tr>
-						<tr><td span="2"><font color="green"><i>Bio: </font></i>${n:out('primate.bio')}</td></tr>
-						<tr><td span="2"><font color="green"><i>Projects:</i> </font></td></tr>
-						<n:iterate ctx="projects">
-							<tr><td>${n:out("primate.projects.project")}</td></tr>
-						</n:iterate>
-					</table>
-				</td>
-			</tr>
-	</table>		
-</div>
-</n:iterate> 
 
+<div class="DevComm">
+<table width="100%"  border="0">
+  <tr>
+    <td width="0%"><img src="<forge:imagePath src="${n:out('primate.mugshot')}" />" border="0" /></td>
+    <td width="100%"><div class="floatright"><a name="<%= PortalLib.out("primate.name").replaceAll("\\W","")%>" ></a>[<a href="/portal/community#<%= PortalLib.out("primate.name").replaceAll("\\W","")%>">Permlink</a>]</div><p><b>${n:out('primate.name')}</b></p>
+      <p>Country: ${n:out("primate.country")}<br>
+        Title: ${n:out('primate.title')}<br>
 
-
-<!-- 
-<div class="primates-entry">
-		<div class="primates-entry-header">
-		<span class="primates-header-font"><b>
-			<a href="/portal/index.html?ctrl:id=page.default.primates&project=all&from=1&link=http://labs.jboss.com/blojsom/primates/kosmos/?permalink=20051115b.html">
-				Pluggable cache store mechanism introduced
-			</a>
-		</b>-</span>
-		<span class="primates-header-font" style="font-style: italic">Posted on Tuesday, November 15, 2005 at 10:14 AM by </span>
-				<b><span class="portlet-font">Kosmos Team</span></b>
-		</div>
-		
-			<span class="portlet-font" style="font-size:12">It was added for Adam's request to solve JBLAB's problems with the SVN WebDAV access.<br/>
-This is generally a good idea, opens up interesting possibilities for future applications. See the Reference Manual for further details (see the section about the server configuration).</span><br />
-		
-	</div>
-	-->
+        Status: ${n:out("primate.status")}</p>
+      <p>Bio: ${n:out('primate.bio')}</p>
+      <p>Projects:<br />
+      <n:iterate ctx="projects">
+      ${n:out("primate.projects.project")}<br />
+      </n:iterate>
+      </p>
+    </td>
+  </tr>
+ </table>
+ </div>
+<hr>
+</n:iterate> 
+</body>
+</html>
\ No newline at end of file




More information about the jboss-svn-commits mailing list