head	1.20;
access;
symbols;
locks; strict;
comment	@# @;


1.20
date	2001.08.24.01.39.33;	author tfahrner;	state Exp;
branches;
next	1.19;

1.19
date	2001.08.20.22.29.23;	author tfahrner;	state Exp;
branches;
next	1.18;

1.18
date	2001.08.03.05.45.07;	author tfahrner;	state Exp;
branches;
next	1.17;

1.17
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.16;

1.16
date	2001.07.31.00.01.56;	author tfahrner;	state Exp;
branches;
next	1.15;

1.15
date	2001.07.30.21.59.23;	author tfahrner;	state Exp;
branches;
next	1.14;

1.14
date	2001.07.30.21.24.28;	author tfahrner;	state Exp;
branches;
next	1.13;

1.13
date	2001.06.17.03.39.02;	author jefflove;	state Exp;
branches;
next	1.12;

1.12
date	2001.06.12.20.35.55;	author neil;	state Exp;
branches;
next	1.11;

1.11
date	2001.06.12.19.59.35;	author neil;	state Exp;
branches;
next	1.10;

1.10
date	2001.06.12.17.12.03;	author neil;	state Exp;
branches;
next	1.9;

1.9
date	2001.06.11.18.36.55;	author neil;	state Exp;
branches;
next	1.8;

1.8
date	2001.06.11.15.12.34;	author neil;	state Exp;
branches;
next	1.7;

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

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

1.5
date	2001.05.25.19.43.30;	author dlr;	state Exp;
branches;
next	1.4;

1.4
date	2001.05.25.02.06.47;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2001.05.25.01.49.13;	author ms;	state Exp;
branches;
next	1.2;

1.2
date	2001.05.24.18.48.47;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2001.05.23.02.03.13;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.20
log
@removed redundant task links
@
text
@<div id="projectnewslist" class="app">


<h3>Project News: <a href="$currentProject.getProjectHome()">$currentProject.getName()</a></h3>

<div class="newslist">

#set( $paginatableList = $currentProject.getNews($itemsPerPage, $filter, $acl) )
#set( $newsPage = $paginatableList.getPage($paginated_page) )
#if( !$newsPage.isEmpty() )

<form action="$servletname" method="post">

<table border="1" cellspacing="2" cellpadding="3" width="100%">

 #set ($rowClass="a")

 #foreach( $item in $newsPage )
 <tr class="$rowClass">
  <td nowrap="nowrap">$item.getEventDateString():</td>
  <td>
    #if( !$item.isPosted() )
     <strong class="alert">Future:</strong>
    #end

    #if( $item.isRemoved() )
     <strong class="alert">Removed:</strong>
    #end

    #if( !$item.isApproved() )
     <strong class="alert">
      #if( $acl.hasPermission("Project News - Approve", $currentProject) )
          <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:
      #else
          Pending Approval:
      #end
     </strong>
    #end 
    $item.getHeadline()
   </td>
   <td>
     #set( $URL = $currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()") )
     <a href="$URL">View</a>
    #if( $item.assertEditPermission($acl) )
     #set( $URL = $currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$item.getID()") )
     | <a href="$URL">Edit</a>
    #end
    #if( $item.assertDeletePermission($acl) )
     #set( $URL = $currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$item.getID()") )
     | <a href="$URL">Delete</a>
    #end
      
    </td>
  </tr>
  
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
  
 #end 
 <tr>
  <td colspan="3">
  ${paginatableList.navigationBar($currentProject.getProjectPageURL($servletName), $paginated_page)}
  </td>
 </tr>
</table>

</form>

#else

<p><strong class="alert">
 There are no news items for this project that match this criteria.
</strong>
</p>

   #if( $loginUser.isAnonymous() || !$isLoggedIn )
    <p>
     If you would like to add or edit a news item, please <a href="/servlets/TLogin">log in</a>.
    </p>
   #end

#end

<form method="post" action="ProjectNewsList">
 #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
</form>
</div>
</div>
@


1.19
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@a5 10
<p class="affordance">
 #if( $acl.hasPermission("Project News - Approve", $currentProject) )
  <a href="$currentProject.getProjectPageURL("ProjectNewsAdd")">Add a News Item</a>
 #else
   #if( $acl.hasPermission("Project News - Suggest", $currentProject) )
  <a href="$currentProject.getProjectPageURL("ProjectNewsAdd")">Suggest a News Item</a>
   #end
 #end
</p>

@


1.18
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
@


1.17
log
@included "task nav" below headlines
@
text
@a4 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.16
log
@pulled admin options, added headlines
@
text
@d5 4
@


1.15
log
@html usage revision to synch with scarab
@
text
@d2 3
@


1.14
log
@removed dependency on CSS for differentiation of alerts
@
text
@d1 1
a1 1
<div id="projectnewslist">
d23 1
a23 1
<table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.13
log
@html usage revisions
@
text
@d32 1
a32 1
     <span class="alert">Future:</span>
d36 1
a36 1
     <span class="alert">Removed:</span>
d40 1
a40 1
     <span class="alert">
d42 1
a42 1
          <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</span>
d44 1
a44 1
          Pending Approval:</span>
d46 1
d83 1
a83 1
<p class="alert">
d85 1
d100 1
a100 1
</div>@


1.12
log
@ui recode with alt rows
@
text
@a96 1

a97 1

@


1.11
log
@ui recode correction
@
text
@d17 4
d24 3
a26 3
#set( $paginatableList = $currentProject.getNews($itemsPerPage, $filter, $acl) )
#set( $newsPage = $paginatableList.getPage($paginated_page) )
#if( !$newsPage.isEmpty() )
d28 1
a28 1
 <tr>
a48 1
   <td width="10">&nbsp;</td>
d63 7
d72 1
a72 1
  <td colspan="5">
d76 4
d81 5
a85 3
 <tr>
  <td colspan="5">
   There are no news items for this project that match this criteria.
d91 1
a91 2
  </td>
 </tr>
a93 2
</table>

a95 2
</form>

@


1.10
log
@ui recode correction
@
text
@d38 1
a38 1
          <a href="$currentProject.getProjectPageURL("projectnewsapproval")">Pending Approval</a>:</span>
@


1.9
log
@ui recoded- changed broken link from projectnewsadd to ProjectNewsAdd- needs alt color rows
@
text
@d5 1
a5 1
<div class="newsadd">
d13 1
a13 1
</div>
a78 7
 <tr>
  <td colspan="5">
   <form method="post" action="ProjectNewsList">
    #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
   </form>
  </td>
 </tr>
d80 4
@


1.8
log
@ui recoded- needs alternating row colors
@
text
@d7 1
a7 1
  <a href="$currentProject.getProjectPageURL("projectnewsadd")">Add a News Item</a>
d10 1
a10 1
  <a href="$currentProject.getProjectPageURL("projectnewsadd")">Suggest a News Item</a>
@


1.7
log
@added two new fields: imageURl and original article URL.

Now on the List page headline is no longer linked. There is a "View" link that goes to the NewsItemView page. On the view page you see the two new fields and all other info.
@
text
@d1 5
a5 6
<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>  
d7 1
a7 1
  <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectNewsAdd")">Add a News Item</a></TD>
d10 1
a10 1
  <TD ALIGN="right" class="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectNewsAdd")">Suggest a News Item</a></TD>
d13 5
a17 2
 </TR>
</TABLE>
d19 1
a19 2
<FORM action=$servletName METHOD="POST">
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="1" width="85%">
a22 9
      <TR>
        <TD COLSPAN="5">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="85%">
            <TR>
              <TD BGCOLOR="#efefef" HEIGHT="1"><SPACER TYPE="block" HEIGHT="1"></TD>
             </TR>
          </TABLE>
        </TD>
      </TR>
d24 3
a26 3
  <TR>
   <TD class="StatText" valign="top" nowrap width=90>$item.getEventDateString():</TD>
   <TD class="PlainText" valign="top" width=55%>
d28 1
a28 1
     <font color="red">Future:</font>
d32 1
a32 1
     <font color="red">Removed:</font>
d36 1
a36 1
     <font color="red">
d38 1
a38 1
          <a href="$currentProject.getProjectPageURL("ProjectNewsApproval")">Pending Approval</a>:</font>
d40 1
a40 1
          Pending Approval:</font>
d44 3
a46 3
   </TD>
   <TD width="10">&nbsp;</TD>
   <TD class="ProjectName" ALIGN="RIGHT">
d58 2
a59 12
    </TD>

  </TR>
      <TR>
        <TD COLSPAN="5">
          <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>
d61 2
a62 1
 <TR><TD COLSPAN="5" ALIGN="center" CLASS="PlainText">
d64 2
a65 1
 </TD></TR>
d67 3
a69 4
 <TR>
  <TD class="PlainText" colspan="5">
   <i>There are no news items for this project that match this criteria.</i>
   <P>
d71 3
a73 2
    <i>If you would like to add or edit a news item, please
    <a href="/servlets/TLogin">log in</a>.</i>
d75 2
a76 2
  </TD>
 </TR>
d79 7
a85 11
<TR>
  <TD colspan="5">&nbsp;</TD>
</TR>

<TR>
  <TD COLSPAN="5">
  <FORM METHOD="post" ACTION="ProjectNewsList">
  #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
  </FORM>
  </TD>
</tr>
d89 4
@


1.6
log
@using short formats for dates
@
text
@d18 1
a18 1
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0" width="75%">
d23 2
a24 2
        <TD COLSPAN="3">
          <TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
a31 1
  #set( $viewURL = $currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()") )
d33 2
a34 2
   <TD class="StatText" valign="top" nowrap>$item.getEventDateString():</TD>
   <TD class="PlainText" valign="top" width="100%">
d51 1
a51 1
    <A HREF="$viewURL">$item.getHeadline()</A> 
d53 14
d70 1
a70 1
        <TD COLSPAN="3">
d79 1
a79 1
 <TR><TD COLSPAN="3" ALIGN="center" CLASS="PlainText">
d84 1
a84 1
  <TD class="PlainText" colspan="3">
d96 1
a96 1
  <TD colspan="3">&nbsp;</TD>
d100 1
a100 1
  <TD COLSPAN="3">
@


1.5
log
@Corrected VTL syntax error(s).
@
text
@d34 1
a34 1
   <TD class="StatText" valign="top" nowrap>${item.getEventDate():&nbsp}</TD>
@


1.4
log
@Corrected VTL syntax error(s).
@
text
@d74 3
a76 2
   #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>.
d92 2
a93 14
</TR>
</TABLE>

</FORM>










d95 1
@


1.3
log
@fixed broken args passing in templates made by conversion program
@
text
@d19 1
a19 1
#set( $paginatableList = ${currentProject.getNews($itemsPerPage, $filter, $acl)}
d32 1
a32 1
  #set( $viewURL = "$currentProject.getProjectPageURL("NewsItemView", "newsID=$item.getID()")"
@


1.2
log
@Removed BRAND_TEMPLATE_ROOT, SERVLET_TEMPLATE_ROOT, and SANDBOX from use in #include and #parse directives (deprecated by multiple template paths).
@
text
@d19 1
a19 1
#set( $paginatableList = ${currentProject.getNews($itemsPerPage, )$filter, $acl)}
d32 1
a32 1
  #set( $viewURL = "$currentProject.getProjectPageURL("NewsItemView", )"newsID=$item.getID()")"
@


1.1
log
@Adding Velocity templates.
@
text
@d88 1
a88 1
  #parse( "${SERVLET_TEMPLATE_ROOT}/org/tigris/helm/tool/paginate/Filter.vm" )
@

