Update of 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/webapp/WEB-INF/templates/view/newsletter/subscription
In directory 
james.mmbase.org:/tmp/cvs-serv22709/portlets-newsletter/src/webapp/WEB-INF/templates/view/newsletter/subscription

Modified Files:
        subscribe.jsp 
Log Message:
CMSC-825 create publication render.


See also: 
http://cvs.mmbase.org/viewcvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/webapp/WEB-INF/templates/view/newsletter/subscription
See also: http://www.mmbase.org/jira/browse/CMSC-825


Index: subscribe.jsp
===================================================================
RCS file: 
/var/cvs/contributions/CMSContainer_Portlets/portlets-newsletter/src/webapp/WEB-INF/templates/view/newsletter/subscription/subscribe.jsp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- subscribe.jsp       15 May 2008 07:06:11 -0000      1.13
+++ subscribe.jsp       15 May 2008 08:46:54 -0000      1.14
@@ -3,7 +3,9 @@
 
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c" %>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"; prefix="fmt" %>
+<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"; prefix="fn" %>
 <%@ taglib uri="http://finalist.com/cmsc"; prefix="cmsc" %>
+<[EMAIL PROTECTED] id="subscriptionList" type="java.util.List"--%>
 
 <fmt:setBundle basename="portlets-newslettersubscription" scope="request"/>
 <c:set var="contextPath">
@@ -45,12 +47,16 @@
 </SCRIPT>
 <form method="POST" name="<portlet:namespace />form_subscribe"
       action="<cmsc:actionURL/>"
->
+      >
 
 <div class="heading">
    <h3><fmt:message key="subscription.subscribe.title"/></h3>
 </div>
 <div class="content">
+<c:choose>
+<c:when test="${fn:length(subscriptionList) > 0}">
+
+
 <table border="1" width="600px">
    <tr>
       <td>&nbsp;</td>
@@ -60,6 +66,7 @@
       <td><fmt:message key="subscription.view.list.status"/></td>
       <td width="100px">&nbsp;</td>
    </tr>
+
    <c:forEach items="${subscriptionList}" var="subscription">
       <tr>
          <td>
@@ -160,6 +167,11 @@
      <fmt:message key="subscription.subscribe.operation.resumeall"/>
 </a>
 <br>
+</c:when>
+<c:otherwise>
+   <fmt:message key="subscription.nonewsletter"/>
+</c:otherwise>
+</c:choose>
 </div>
 </form>
 
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to