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


1.10
date	2001.08.20.22.29.23;	author tfahrner;	state Exp;
branches;
next	1.9;

1.9
date	2001.08.03.05.45.07;	author tfahrner;	state Exp;
branches;
next	1.8;

1.8
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.31.00.01.56;	author tfahrner;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.30.21.59.23;	author tfahrner;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.11.20.26.44;	author neil;	state Exp;
branches;
next	1.4;

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

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

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

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


desc
@@


1.10
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@<div id="newsitemview" class="app">


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

<p>
     #if( $newsItem.assertEditPermission($acl))
         #set( $editURL = $currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$newsItem.getID()") )
         &nbsp;&nbsp; <a href="$editURL">Edit</a> | 
     #end
     #if( $newsItem.assertDeletePermission($acl))
         #set( $deleteURL = $currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$newsItem.getID()") )
         <a href="$deleteURL">Delete</a> 
     #end
</p>

<p>
$newsItem.getEventDateString(): $newsItem.getHeadline()
</p>

<p>
Contributed by: <a href="mailTo:$newsItem.getProposedByUser().getEmail()">$newsItem.getProposedByUser().getRealName()</a>
</p>

#if (!$newsItem.getOriginalArticleUrl().equals(""))
 <p>
  <a href="$newsItem.getOriginalArticleUrl()">View Original Article</a>
 </p>
#end
#if (!$newsItem.getImageUrl().equals(""))
 <p>
  <a href="$newsItem.getImageUrl()">View Image</a>
 </p>
#end

<p class="newsbody">
$newsItem.getBody()
</p>

</div>
@


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


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


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


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


1.5
log
@ui recoded
@
text
@d1 1
a1 1
<div id="newsitemview">
@


1.4
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 1
a1 7
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
 <TR>
  <TD class="Header" nowrap><b>News Item:</b> <SPAN CLASS="ProjectNameHeader">
   <A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a>
   </SPAN>
  </TD>  
   <TD class="PlainText" valign="top" nowrap>
d3 3
d8 1
a8 1
         &nbsp;&nbsp; <A HREF="$editURL">Edit</a> | 
d12 1
a12 1
         <A HREF="$deleteURL">Delete</A> 
d14 26
a39 25
   </TD>
 </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="75%"> 
  <TR>
      <TD colspan=2>&nbsp;</TD>
  </TR>
  <TR >
    <TD class="PlainText" valign="top">$newsItem.getEventDateString(): $newsItem.getHeadline()
    <P>
    Contributed by:  <a href="mailTo:$newsItem.getProposedByUser().getEmail()">$newsItem.getProposedByUser().getRealName()</a>
    #if (!$newsItem.getOriginalArticleUrl().equals(""))
        <P>
        <a href="$newsItem.getOriginalArticleUrl()">View Original Article</a>
    #end
    #if (!$newsItem.getImageUrl().equals(""))
        <P>
        <a href="$newsItem.getImageUrl()">View Image</a>
    #end
    <P>
	$newsItem.getBody()
    </TD>
  </TR>
</TABLE>
@


1.3
log
@fixed more whatever crap
@
text
@a7 2
    #set( $proposedByUser = false )
    #set( $canEdit = false )
d9 7
a15 12
    #if( $acl.hasPermission("Project News - Edit", $currentProject) )
       #set( $canEdit = true )
    #end
     
    #if( $newsItem.getProposedBy().toString().equals($acl.getUser().getID()) )
       #set( $proposedByUser = true )
    #end
     #if( $proposedByUser || $canEdit )
     #set( $editURL = "$currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$newsItem.getID()")" )
     #set( $deleteURL = "$currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$newsItem.getID()")" )
     &nbsp;&nbsp; <A HREF="$editURL">Edit</a> | 
     <A HREF="$deleteURL">Delete</A> 
d26 1
a26 1
    <TD class="PlainText" valign="top">$newsItem.getEventDate(): $newsItem.getHeadline()
d29 8
@


1.2
log
@fixed broken args passing in templates made by conversion program
@
text
@d19 2
a20 2
     #set( $editURL = "$currentProject.getProjectPageURL("ProjectNewsEdit", "newsID=$newsItem.getID()")"
     #set( $deleteURL = "$currentProject.getProjectPageURL("ProjectNewsDelete", "newsID=$newsItem.getID()")"
@


1.1
log
@Adding Velocity templates.
@
text
@d19 2
a20 2
     #set( $editURL = "$currentProject.getProjectPageURL("ProjectNewsEdit", )"newsID=$newsItem.getID()")"
     #set( $deleteURL = "$currentProject.getProjectPageURL("ProjectNewsDelete", )"newsID=$newsItem.getID()")"
@

