head	1.24;
access;
symbols
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.20
	TIGRIS_0_9_2_3:1.20
	HELM_PEER_PORT_BRANCH:1.1.1.2
	TURBINE_PEER:1.20
	TIGRIS_0_9_2_1:1.20
	TIGRIS_0_9_2:1.20.0.2
	TIGRIS_0_9_0:1.16.0.2
	TIGRIS_0_8_4:1.10.0.2
	NEWHELM:1.1.1.1
	TIGRIS_NOV_12_2000:1.1.1;
locks; strict;
comment	@# @;


1.24
date	2001.02.28.22.16.04;	author elicia;	state dead;
branches;
next	1.23;

1.23
date	2001.02.21.01.08.31;	author dlr;	state Exp;
branches;
next	1.22;

1.22
date	2001.02.06.20.06.43;	author elicia;	state Exp;
branches;
next	1.21;

1.21
date	2001.02.02.02.40.58;	author elicia;	state Exp;
branches;
next	1.20;

1.20
date	2001.01.16.21.26.24;	author elicia;	state Exp;
branches
	1.20.4.1;
next	1.19;

1.19
date	2000.12.29.17.11.55;	author leonardr;	state Exp;
branches;
next	1.18;

1.18
date	2000.12.22.20.51.25;	author elicia;	state Exp;
branches;
next	1.17;

1.17
date	2000.12.22.00.30.15;	author elicia;	state Exp;
branches;
next	1.16;

1.16
date	2000.12.19.21.05.29;	author elicia;	state Exp;
branches
	1.16.2.1;
next	1.15;

1.15
date	2000.12.19.20.42.57;	author elicia;	state Exp;
branches;
next	1.14;

1.14
date	2000.12.19.19.56.29;	author elicia;	state Exp;
branches;
next	1.13;

1.13
date	2000.12.15.23.57.23;	author elicia;	state Exp;
branches;
next	1.12;

1.12
date	2000.12.15.01.13.56;	author jrobbins;	state Exp;
branches;
next	1.11;

1.11
date	2000.12.05.00.03.37;	author susank;	state Exp;
branches;
next	1.10;

1.10
date	2000.12.02.06.24.17;	author cameron;	state Exp;
branches
	1.10.2.1;
next	1.9;

1.9
date	2000.11.30.19.19.19;	author elicia;	state Exp;
branches;
next	1.8;

1.8
date	2000.11.30.02.40.15;	author cameron;	state Exp;
branches;
next	1.7;

1.7
date	2000.11.23.04.18.01;	author elicia;	state Exp;
branches;
next	1.6;

1.6
date	2000.11.22.03.29.45;	author elicia;	state Exp;
branches;
next	1.5;

1.5
date	2000.11.22.02.22.48;	author elicia;	state Exp;
branches;
next	1.4;

1.4
date	2000.11.21.01.27.30;	author elicia;	state Exp;
branches;
next	1.3;

1.3
date	2000.11.16.04.11.12;	author elicia;	state Exp;
branches;
next	1.2;

1.2
date	2000.11.14.04.54.49;	author jrobbins;	state Exp;
branches;
next	1.1;

1.1
date	2000.11.12.21.18.22;	author dlr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2000.11.12.21.18.22;	author dlr;	state Exp;
branches;
next	1.1.1.2;

1.1.1.2
date	2001.02.21.00.36.59;	author dlr;	state Exp;
branches;
next	;

1.10.2.1
date	2000.12.15.05.48.48;	author jrobbins;	state Exp;
branches;
next	;

1.16.2.1
date	2000.12.23.00.36.14;	author jrobbins;	state Exp;
branches;
next	;

1.20.4.1
date	2001.01.31.02.05.51;	author leonardr;	state Exp;
branches;
next	1.20.4.2;

1.20.4.2
date	2001.02.12.17.20.31;	author leonardr;	state Exp;
branches;
next	1.20.4.3;

1.20.4.3
date	2001.02.17.20.11.18;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.24
log
@rename to ProjectNewsList
@
text
@<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
 <TR>
  <TD class="Header" nowrap>Project News: <SPAN CLASS="ProjectNameHeader">
   <A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a>
   </SPAN>
  </TD>  
 #if ($acl.hasPermission("Project News - Suggest", $currentProject))
 {
  <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectNewsAdd")">Add a News Item</a></TD>
 }
 </TR>
</TABLE>

<FORM action=$servletName METHOD="POST">
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">
      <TR>
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
      </TR>

#set $paginatableList = $currentProject.getNews($itemsPerPage, $criterion, $acl);
#set $newsPage = $paginatableList.getPage(1);
#if (!$newsPage.isEmpty())
{
 #foreach $item in $newsPage
 {
  #set $viewURL = "$currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()")"
  <TR>
   <TD class="StatText" valign="top" nowrap>$item.getEventDate():&nbsp;</TD>
   <TD class="PlainText" valign="top" width="100%">
    #if (!$item.isPosted())
    {
     <font color="red">Future:</font>
    }
    #if ($item.isRemoved())
    {
     <font color="red">Removed:</font>
    }
    #if (!$item.isApproved())
    {
         #if ($acl.hasPermission("Project News - Approve", $currentProject))
         {
         <font color="red"><a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font><A HREF="$viewURL">$item.getHeadline()</A>
         } #else { 
           <font color="red">Pending Approval:</font><A HREF="$viewURL">$item.getHeadline()</A>
         }
     } #else {
        <A HREF="$viewURL">$item.getHeadline()</A>
     } </TD>
  
     <TD class="PlainText" valign="top" nowrap>
     #if ($acl.hasPermission("Project News - Edit", $currentProject) || $acl.getUserID().equals($item.getProposedBy()))
    {
     #set $editURL = "$currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$item.getID()")"
     #set $deleteURL = "$currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$item.getID()")"
     &nbsp;&nbsp; <A HREF="$editURL">Edit</a> | 
     <A HREF="$deleteURL">Delete</A> 
    }
   </TD>
  </TR>
      <TR>
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
      </TR>
 } 
 <TR><TD COLSPAN="3" ALIGN="center" CLASS="PlainText">
  $paginatableList.navigationBar("ProjectNews", $paginated_page);
 </TD></TR>
} #else {
 <TR>
  <TD class="PlainText" colspan="3">
   <i>There are no news items for this project.</i>
  </TD>
 </TR>
}

<TR>
 <TD COLSPAN="3">
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>

</FORM>
<TR>
  <TD COLSPAN="3">
  <FORM METHOD="post" ACTION="ProjectNews">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>

</TABLE>












@


1.23
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@@


1.22
log
@broke up add and edit into two steps (advanced options optional)
@
text
@d7 1
a7 1
 #if ($acl.hasPermissionForProject("Project News - Suggest", $currentProject.getID()))
d46 12
a57 12
        #if ($acl.hasPermissionForProject("Project News - Approve", $currentProject.getID()))
        {
        <font color="red"><a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font><A HREF="$viewURL">$item.getHeadline()</A>
        } #else { 
          <font color="red">Pending Approval:</font><A HREF="$viewURL">$item.getHeadline()</A>
        }
    } #else {
       <A HREF="$viewURL">$item.getHeadline()</A>
    } </TD>

   <TD class="PlainText" valign="top" nowrap>
    #if ($acl.hasPermissionForProject("Project News - Edit", $currentProject.getID()) || $acl.getUserID().equals($item.getProposedBy()))
@


1.21
log
@added permission for the user who contributed a news item to edit and delete it
@
text
@d27 1
a27 1
#set $newsPage = $paginatableList.getPage($paginated_page);
d97 1
a107 1
</FORM>
@


1.20
log
@changed link to approval page
@
text
@a39 1

a43 1

d46 9
a54 5
     <font color="red">
      <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font>
    } 
    <A HREF="$viewURL">$item.getHeadline()</A> 
   </TD>
d57 1
a57 1
    #if ($acl.hasPermissionForProject("Project News - Edit", $currentProject.getID()))
d66 9
@


1.20.4.1
log
@Converted permission checking somewhat.
@
text
@d7 1
a7 1
 #if ($acl.hasPermissionForProject("Project News - Suggest", $currentProject))
d55 1
a55 1
    #if ($acl.hasPermissionForProject("Project News - Edit", $currentProject))
@


1.20.4.2
log
@Got rid of calls to deprecated permission checking methods.
@
text
@d7 1
a7 1
 #if ($acl.hasPermission("Project News - Suggest", $currentProject))
d55 1
a55 1
    #if ($acl.hasPermission("Project News - Edit", $currentProject))
@


1.20.4.3
log
@Ported changes from head.
@
text
@d27 1
a27 1
#set $newsPage = $paginatableList.getPage(1);
d40 1
d45 1
d48 8
a55 12
         #if ($acl.hasPermission("Project News - Approve", $currentProject))
         {
         <font color="red"><a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font><A HREF="$viewURL">$item.getHeadline()</A>
         } #else { 
           <font color="red">Pending Approval:</font><A HREF="$viewURL">$item.getHeadline()</A>
         }
     } #else {
        <A HREF="$viewURL">$item.getHeadline()</A>
     } </TD>
  
     <TD class="PlainText" valign="top" nowrap>
     #if ($acl.hasPermission("Project News - Edit", $currentProject) || $acl.getUserID().equals($item.getProposedBy()))
a63 9
      <TR>
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
      </TR>
a85 1
</FORM>
d96 1
@


1.19
log
@Many, many pagination changes.
@
text
@d49 1
a49 1
      <a href="$currentProject.getProjectPageURL("NewsItemApprove")">Pending Approval</a>:</font>
@


1.18
log
@fixed bug with displaying "No news items"
@
text
@d2 10
a11 7
  <TR>
    <TD class="Header" nowrap>Project News: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
	#if ($acl.hasPermissionForProject("Project News - Suggest", $currentProject.getID()))
	{
    <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectNewsAdd")">Add a News Item</a></TD>
        }
  </TR>
d13 2
a14 1
<FORM action=$servletName>
d26 14
a39 1
#set $visibleItems = false
d41 1
a41 3
#if ($newsItems)
{
    #foreach $item in $newsItems
d43 3
a45 28
      #set $showItem = false
      ## Show news item if it's current and approved, or if user can edit
      #if ($acl.hasPermissionForProject("Project News - Edit", $currentProject.getID()) || ( ($item.isPosted()) && (!$item.isRemoved()) && ($item.isApproved()) ) )
      {
          #set $showItem = true

      ## or, show news item if it is unapproved but user can approve
      } #else {
         #if ($acl.hasPermissionForProject("Project News - Approve", $currentProject.getID()) && !$item.isApproved())
         {
          #set $showItem = true
         }
      }
      #if ($showItem)
      {
          #set $visibleItems = true
          #set $viewURL = "$currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()")"
      <TR>
	<TD class="StatText" valign="top" nowrap>$item.getEventDate():&nbsp;</TD>
	<TD class="PlainText" valign="top" width="100%">
	#if (!$item.isPosted())
	{
	  <font color="red">Future:</font>
	}
	#if ($item.isRemoved())
	{
	  <font color="red">Removed:</font>
	}
d48 2
a49 1
	  <font color="red"><a href="$currentProject.getProjectPageURL("NewsItemApprove")">Pending Approval</a>:</font>
d51 2
a52 20
         <A HREF="$viewURL">$item.getHeadline()</A> </TD>
        <TD class="PlainText" valign="top" nowrap>
	#if ($acl.hasPermissionForProject("Project News - Edit", $currentProject.getID()))
	{
       #set $editURL = "$currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$item.getID()")"
       #set $deleteURL = "$currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$item.getID()")"
	&nbsp;&nbsp; <A HREF="$editURL">Edit</a> | 
        <A HREF="$deleteURL">Delete</A> 
	}
	</TD>
      </TR>
      <TR>
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
      </TR>
d54 7
a60 1
      }
d62 12
a73 16
} 
## If there are no items user has permission to view, see "No news items" message
#if (!$visibleItems)
{
      <TR>
	<TD class="PlainText" colspan="3"><i>There are no news items for this project.</i></TD>
      </TR>
      <TR>
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
      </TR>
d75 18
@


1.17
log
@now displaying a message "No news items" if there are items but user does not have permission to see them.
@
text
@d22 2
d33 2
a34 1
        ## or, show news item if it is unapproved but user can approve
d43 2
a44 1
  #set $viewURL = "$currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()")"
d84 2
a85 1
#if (!$showItem)
@


1.16
log
@removed debugging code
@
text
@d79 3
a81 1
} #else {
@


1.16.2.1
log
@moved in cahnges to ProjectNews from HEAD
@
text
@a21 2
#set $visibleItems = false

d31 1
a31 2

      ## or, show news item if it is unapproved but user can approve
d40 1
a40 2
          #set $visibleItems = true
          #set $viewURL = "$currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()")"
d79 1
a79 4
} 
## If there are no items user has permission to view, see "No news items" message
#if (!$visibleItems)
{
@


1.15
log
@initial revision
@
text
@a0 1
$acl.hasPermissionForProject("Project News - Approve", $currentProject.getID())
@


1.14
log
@filtering out unapproved news items
@
text
@d1 1
@


1.13
log
@changed links to support vhosting and non-vhosting modes
@
text
@d4 1
a4 1
	#if ($acl.hasPermissionForProject("Project News - Add", $currentProject.getID()))
d21 1
d26 13
a38 1
      #if ($acl.hasPermissionForProject("Project News - Edit", $currentProject.getID()) || ( ($item.isPosted()) && (!$item.isRemoved()) ))
d43 1
a43 1
	<TD class="PlainText" valign="top" width="100%"><A HREF="$viewURL">
d52 5
a56 1
         $item.getHeadline()</A> </TD>
a92 36


## Only show this pagination shlock if there is actually more than one page.
#if ($currentPage)
{
  <TR>
    <TD class="PlainText" VALIGN="top"></TD>
    <TD WIDTH="10"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="PlainText" VALIGN="top">
  #if ($prevPage)
  {
      <A HREF="/servlets/ProjectNews?projectID=$currentProject.getID()&page=$prevPage">prev</A> | 
  }
  #foreach $page in $pages
  {
    #if (!$page.toString().equals("1"))
    {
      |
    }
    #if ($page.equals($currentPage))
    {
      $page
    } #else {
      <A HREF="/servlets/ProjectNews?projectID=$currentProject.getID()&page=$page">$page</A>
    }
  }
  #if ($nextPage)
  {
      | <A HREF="/servlets/ProjectNews?projectID=$currentProject.getID()&page=$nextPage">next</A>
  }
    <TD WIDTH="10"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="PlainText" VALIGN="top"></TD>
    <TD WIDTH="100%">&nbsp;</TD>
  </TR>
}

@


1.12
log
@explanatory sentences like this should be in italics
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Project News: <SPAN CLASS="ProjectNameHeader"><A HREF="/servlets/ProjectHome?projectID=$currentProject.getID()">$currentProject.getName()</a></SPAN></TD>  
d6 1
a6 1
    <TD ALIGN="right" class="ProjectName"><A HREF="/servlets/ProjectNewsAdd?projectID=$currentProject.getID()">Add a News Item</a></TD>
d27 1
d30 1
a30 1
	<TD class="PlainText" valign="top" width="100%"><A HREF="/servlets/NewsItemView?newsID=$item.getID()&projectID=$currentProject.getID()">
d43 4
a46 2
	&nbsp;&nbsp; <A HREF="/servlets/ProjectNewsEdit?newsID=$item.getID()&projectID=$currentProject.getID()">Edit</a> | 
        <A HREF="/servlets/ProjectNewsDelete?newsID=$item.getID()&projectID=$currentProject.getID()">Delete</A> 
@


1.11
log
@changed project name in title to link to ProjectHome
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d61 1
a61 1
	<TD class="PlainText" colspan="3">There are no news items for this project.</TD>
@


1.10
log
@fixed permissions thing with Add a News item showing up.`
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Project News: <SPAN CLASS="ProjectNameHeader">$currentProject.getName()</SPAN></TD>  
@


1.10.2.1
log
@made sentence about missing news items italic
@
text
@d61 1
a61 1
	<TD class="PlainText" colspan="3"><i>There are no news items for this project.</i></TD>
@


1.9
log
@lining up Edit/Delete links under Add a news item link
@
text
@d29 1
a29 2
	<TD class="PlainText" valign="top" width="100%"><A
HREF="/servlets/NewsItemView?newsID=$item.getID()&projectID=$currentProject.getID()">
d61 1
a61 2
	<TD class="PlainText" colspan="3">There are no news items for this project. You may <A
HREF="/servlets/ProjectNewsAdd?projectID=$currentProject.getID()">add a news item</a>.</TD>
@


1.8
log
@added separator lines. cleaned up layout.
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@a9 1

d11 1
a11 1
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="100%">
@


1.7
log
@changed "pending" to "future" to indicate that the news item will be published at a later date.
@
text
@a10 1
<P>
d12 10
a21 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">
d29 3
a31 2
	<TD class="NewsDateTable" width="20%">$item.getEventDate():</TD>
	<TD class="PlainText" ><A HREF="/servlets/NewsItemView?newsID=$item.getID()&projectID=$currentProject.getID()">
d41 1
a41 1
        <TD class="PlainText">
d44 1
a44 1
	<A HREF="/servlets/ProjectNewsEdit?newsID=$item.getID()&projectID=$currentProject.getID()">Edit</a> | 
d49 10
d63 11
a73 1
	<TD class="PlainText" colspan = 4>There are no news items for this project.</TD>
@


1.6
log
@adding a red "Posted" and "Removed" before the headline if the news item is before or past its posting date. Only admins see these news items.
@
text
@d25 1
a25 1
	  <font color="red">Pending:</font>
@


1.5
log
@modernized files

added fields for publish_on and remove_on fields
@
text
@d18 2
d22 11
a32 1
	<TD class="PlainText" ><A HREF="/servlets/NewsItemView?newsID=$item.getID()&projectID=$currentProject.getID()">$item.getHeadline()</A></TD>
d35 2
a36 2
	<TD class="PlainText"><A HREF="/servlets/ProjectNewsEdit?newsID=$item.getID()&projectID=$currentProject.getID()">Edit</a> | 
        <A HREF="/servlets/ProjectNewsDelete?newsID=$item.getID()&projectID=$currentProject.getID()">Delete</A></TD>
d38 1
d40 1
d44 1
a44 1
	<TD class="PlainText" colspan =4>There are no news items for this project.</TD>
@


1.4
log
@added pagination
@
text
@d20 1
a20 1
	<TD class="PlainText" ><A HREF="/servlets/NewsItemView?newsID=$item.getNewsID()&projectID=$currentProject.getID()">$item.getHeadline()</A></TD>
d23 2
a24 2
	<TD class="PlainText"><A HREF="/servlets/ProjectNewsEdit?newsID=$item.getNewsID()&projectID=$currentProject.getID()">Edit</a> | 
        <A HREF="/servlets/ProjectNewsDelete?newsID=$item.getNewsID()&projectID=$currentProject.getID()">Delete</A></TD>
@


1.3
log
@only shows Add News Item link if user has permission
@
text
@d34 35
a68 1
## TODO pagination
@


1.2
log
@added comment as reminder to add pagination sometime
@
text
@d4 2
d7 1
@


1.1
log
@Initial revision
@
text
@d31 2
@


1.1.1.1
log
@Merging newhelm tree into helm, as per IZ issue #557.  Previous major version of helm is tagged TIGRIS_NOV_11_2000.
@
text
@@


1.1.1.2
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d2 4
a5 10
 <TR>
  <TD class="Header" nowrap>Project News: <SPAN CLASS="ProjectNameHeader">
   <A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a>
   </SPAN>
  </TD>  
 #if ($acl.hasPermission("Project News - Suggest", $currentProject))
 {
  <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectNewsAdd")">Add a News Item</a></TD>
 }
 </TR>
d8 7
a14 2
<FORM action=$servletName METHOD="POST">
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">
d16 7
a22 7
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
a23 14

#set $paginatableList = $currentProject.getNews($itemsPerPage, $criterion, $acl);
#set $newsPage = $paginatableList.getPage(1);
#if (!$newsPage.isEmpty())
{
 #foreach $item in $newsPage
 {
  #set $viewURL = "$currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()")"
  <TR>
   <TD class="StatText" valign="top" nowrap>$item.getEventDate():&nbsp;</TD>
   <TD class="PlainText" valign="top" width="100%">
    #if (!$item.isPosted())
    {
     <font color="red">Future:</font>
d25 1
a25 26
    #if ($item.isRemoved())
    {
     <font color="red">Removed:</font>
    }
    #if (!$item.isApproved())
    {
         #if ($acl.hasPermission("Project News - Approve", $currentProject))
         {
         <font color="red"><a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font><A HREF="$viewURL">$item.getHeadline()</A>
         } #else { 
           <font color="red">Pending Approval:</font><A HREF="$viewURL">$item.getHeadline()</A>
         }
     } #else {
        <A HREF="$viewURL">$item.getHeadline()</A>
     } </TD>
  
     <TD class="PlainText" valign="top" nowrap>
     #if ($acl.hasPermission("Project News - Edit", $currentProject) || $acl.getUserID().equals($item.getProposedBy()))
    {
     #set $editURL = "$currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$item.getID()")"
     #set $deleteURL = "$currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$item.getID()")"
     &nbsp;&nbsp; <A HREF="$editURL">Edit</a> | 
     <A HREF="$deleteURL">Delete</A> 
    }
   </TD>
  </TR>
d27 1
a27 7
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
a28 10
 } 
 <TR><TD COLSPAN="3" ALIGN="center" CLASS="PlainText">
  $paginatableList.navigationBar("ProjectNews", $paginated_page);
 </TD></TR>
} #else {
 <TR>
  <TD class="PlainText" colspan="3">
   <i>There are no news items for this project.</i>
  </TD>
 </TR>
d31 1
a31 9
<TR>
 <TD COLSPAN="3">
  <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
   <TR>
    <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
   </TR>
  </TABLE>
 </TD>
</TR>
a33 10
<TR>
  <TD COLSPAN="3">
  <FORM METHOD="post" ACTION="ProjectNews">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>

</TABLE>

@

