head	1.12;
access;
symbols
	TIGRIS_1_1_0RC2:1.8.6.1
	TIGRIS_1_1_0RC1:1.8.6.1
	TIGRIS_1_1:1.8.6.1.0.2
	TIGRIS_1_0_8:1.8.6.1
	TIGRIS_1_0_8RC3:1.8.6.1
	TIGRIS_1_0_8RC2:1.8.6.1
	TIGRIS_1_0_8RC1:1.8.6.1
	TIGRIS_1_0_7:1.8.6.1
	TIGRIS_1_0_7RC3:1.8.6.1
	TIGRIS_1_0_7RC2:1.8.6.1
	TIGRIS_1_0_7RC1:1.8.6.1
	TIGRIS_1_0_6:1.8.6.1
	TIGRIS_1_0_6RC5:1.8.6.1
	TIGRIS_1_0_6RC4:1.8.6.1
	TIGRIS_1_0_6RC3:1.8.6.1
	TIGRIS_1_0_6RC2:1.8.6.1
	TIGRIS_1_0_6RC1:1.8.6.1
	TIGRIS_1_0_5:1.8.6.1
	TIGRIS_1_0_5RC6:1.8.6.1
	TIGRIS_1_0_5RC5:1.8.6.1
	TIGRIS_1_0_5RC4:1.8.6.1
	TIGRIS_1_0_5RC3:1.8.6.1
	TIGRIS_1_0_5RC2:1.8.6.1
	TIGRIS_1_0_5RC1:1.8.6.1
	TIGRIS_1_0_4:1.8.6.1
	TIGRIS_1_0_3:1.8.6.1
	TIGRIS_1_0_2:1.8
	TIGRIS_1_0_1:1.8
	TIGRIS_1_0:1.8.0.6
	TIGRIS_1_0_0:1.8
	TIGRIS_1_0_0_RC1:1.8.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1;
locks; strict;
comment	@# @;


1.12
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.11;

1.11
date	2001.05.13.07.35.20;	author jrobbins;	state Exp;
branches;
next	1.10;

1.10
date	2001.04.26.23.13.51;	author edk;	state Exp;
branches;
next	1.9;

1.9
date	2001.03.29.23.45.02;	author susank;	state Exp;
branches;
next	1.8;

1.8
date	2001.03.23.19.25.07;	author elicia;	state Exp;
branches
	1.8.6.1;
next	1.7;

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

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

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

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

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

1.2
date	2001.02.21.01.56.43;	author edk;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.15.19.01.32;	author elicia;	state dead;
branches
	1.1.1.1
	1.1.2.1;
next	;

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

1.1.2.1
date	2001.02.15.19.01.32;	author elicia;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2001.02.16.01.21.37;	author elicia;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2001.02.16.21.34.45;	author elicia;	state Exp;
branches;
next	;

1.8.6.1
date	2001.04.26.23.15.29;	author edk;	state Exp;
branches;
next	;


desc
@@


1.12
log
@Removed WM templates in favor of Velocity templates.
@
text
@<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0"  WIDTH="85%">
 <TR>
  <TD class="Header" nowrap><b>Project News:</b> <SPAN CLASS="ProjectNameHeader">
   <A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a>
   </SPAN>
  </TD>  
 #if ($acl.hasPermission("Project News - Approve", $currentProject))
 {
  <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectNewsAdd")">Add a News Item</a></TD>
 } #else {
   #if ($acl.hasPermission("Project News - Suggest", $currentProject))
   {
  <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectNewsAdd")">Suggest a News Item</a></TD>
   }
 }
 </TR>
</TABLE>

<FORM action=$servletName METHOD="POST">
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" width="75%">
#set $paginatableList = $currentProject.getNews($itemsPerPage, $filter, $acl);
#set $newsPage = $paginatableList.getPage($paginated_page);
#if (!$newsPage.isEmpty())
{
      <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>
 #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())
    {
     <font color="red">
      #if ($acl.hasPermission("Project News - Approve", $currentProject))
      {
          <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font>
      } #else {
          Pending Approval:</font>
      }
    } 
    <A HREF="$viewURL">$item.getHeadline()</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($currentProject.getProjectPageURL($servletName), $paginated_page);
 </TD></TR>
} #else {
 <TR>
  <TD class="PlainText" colspan="3">
   <i>There are no news items for this project that match this criteria.</i>
   <P>
   #if (($loginUser.isAnonymous()) || (!isLoggedIn))
   {
    <i>If you would like to add or edit a news item, please <a href="/servlets/TLogin">log in</a></i>.
   }
  </TD>
 </TR>
}

<TR>
  <TD colspan="3">&nbsp;</TD>
</TR>

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

</FORM>











@


1.11
log
@added style, regularized arguments to navigationBar, removed an unneeded link
@
text
@@


1.10
log
@finish changing name from ProjectNews to ProjectNewsList
@
text
@d75 1
a75 1
  $paginatableList.navigationBar("ProjectNewsList", $paginated_page);
@


1.9
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d75 1
a75 1
  $paginatableList.navigationBar("ProjectNews", $paginated_page);
d96 1
a96 1
  <FORM METHOD="post" ACTION="ProjectNews">
@


1.8
log
@fixed grammatical error
@
text
@d3 1
a3 1
  <TD class="Header" nowrap>Project News: <SPAN CLASS="ProjectNameHeader">
@


1.8.6.1
log
@finish changing name from ProjectNews to ProjectNewsList
Submitted by:	Ed Korthof <edk@@collab.net>
Reviewed by:	Susan Kelley <susank@@collab.net>
@
text
@d75 1
a75 1
  $paginatableList.navigationBar("ProjectNewsList", $paginated_page);
d96 1
a96 1
  <FORM METHOD="post" ACTION="ProjectNewsList">
@


1.7
log
@moved Edit/Delete links from List page to View page because List page needs more horizontal space for long headlines
@
text
@d80 1
a80 1
   <i>There are no news items for this project this match this criteria.</i>
@


1.6
log
@moved filter so that it appears in the case where news items matched the user's first criteria
@
text
@d1 1
a1 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
d20 1
a20 1
<TABLE CELLSPACING="0" CELLPADDING="2" BORDER="0" width="85%">
a62 22
   <TD class="PlainText" valign="top" nowrap>
    #set $proposedByUser = false
    #set $canEdit = false

    #if ($acl.hasPermission("Project News - Edit", $currentProject) )
    {
       #set $canEdit = true
    }
     
    #if ($item.getProposedBy().toString().equals($acl.getUser().getID()))
    {
       #set $proposedByUser = true
    }

     #if ($proposedByUser || $canEdit)
     {
     #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>
d90 3
@


1.5
log
@made ui consistant. added line prompting guest users to log in if they wish to add or edit.
@
text
@a98 7
<TR>
  <TD COLSPAN="3">
  <FORM METHOD="post" ACTION="ProjectNews">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>
d102 1
a102 1
   <i>There are no news items for this project.</i>
d113 7
@


1.4
log
@using Suggest/Add conditionals for adding new news item
@
text
@d21 4
a33 5

#set $paginatableList = $currentProject.getNews($itemsPerPage, $filter, $acl);
#set $newsPage = $paginatableList.getPage($paginated_page);
#if (!$newsPage.isEmpty())
{
d99 7
d110 5
a118 7
<TR>
  <TD COLSPAN="3">
  <FORM METHOD="post" ACTION="ProjectNews">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>
@


1.3
log
@fixed permissions for edit links
@
text
@d7 1
a7 1
 #if ($acl.hasPermission("Project News - Suggest", $currentProject))
d10 5
@


1.2
log
@add new files from the branch to the head (there should be only added
files, ie. no modified files).
@
text
@d49 6
a54 1
      <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font>
d60 9
a68 1
    #if ($acl.hasPermission("Project News - Edit", $currentProject))
d70 5
d79 1
a79 1
    }
@


1.1
log
@file ProjectNewsList.wm was initially added on branch HELM_PEER_PORT_BRANCH.
@
text
@d1 106
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 106
<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, $filter, $acl);
#set $newsPage = $paginatableList.getPage($paginated_page);
#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())
    {
     <font color="red">
      <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font>
    } 
    <A HREF="$viewURL">$item.getHeadline()</A> 
   </TD>

   <TD class="PlainText" valign="top" nowrap>
    #if ($acl.hasPermission("Project News - Edit", $currentProject))
    {
     #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">
  <FORM METHOD="post" ACTION="ProjectNews">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>

</TABLE>

</FORM>











@


1.1.2.1
log
@changed name
@
text
@a0 108
<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, $filter, $acl);
$paginatableList
#set $newsPage = $paginatableList.getPage($paginated_page);
#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())
    {
     <font color="red">
      <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font>
    } 
    <A HREF="$viewURL">$item.getHeadline()</A> 
   </TD>

   <TD class="PlainText" valign="top" nowrap>
    #if ($acl.hasPermission("Project News - Edit", $currentProject))
    {
     #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" 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>

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

</TABLE>

</FORM>











@


1.1.2.2
log
@removed debugging code
@
text
@d27 1
@


1.1.2.3
log
@added gray separator bars between list items
@
text
@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>
d75 10
@


