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


1.10
date	2001.07.19.19.09.50;	author elicia;	state dead;
branches;
next	1.9;

1.9
date	2001.06.20.20.52.13;	author dlr;	state Exp;
branches;
next	1.8;

1.8
date	2001.06.20.17.46.53;	author jefflove;	state Exp;
branches;
next	1.7;

1.7
date	2001.06.19.19.34.31;	author neil;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.07.19.22.19;	author neil;	state Exp;
branches;
next	1.5;

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

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

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

1.2
date	2001.05.31.19.15.42;	author elicia;	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
@removing document-related templates, since they are being extracted out into the nidaba component.
@
text
@<div id="projectdocumentview">

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

<dl>
 <dt>
  Status:
 </dt>
 <dd>
  #if( $document.getStatus()) 
   $document.getStatus()
  #else
    Active
  #end
 </dd>
  
#if( $document.getDescription() && !$document.getDescription().equals("") )
 <dt>
  Description:
 </dt>
 <dd>
  $document.getDescription()
 </dd>  
#end

#if( $document.getFileName() && !$document.getFileName().equals("") )
 <dt>
  Public Document?:
 </dt>
 <dd>
 #if( $document.isPublic() )
   Yes
 #else
   No  
 #end
 </dd>
#end

#set( $email = $document.getProposedByUser().getEmail() )
 <dt>  
  Created:
 </dt>
 <dd>
  by <a href="mailto:$email">$document.getProposedByUser().getLoginName()</a> on $document.getCreatedDateString()
 </dd>
  
#set( $email = $document.getModifiedByUser().getEmail() )
 <dt>
  Last Modified:
 </dt>
 <dd>
  by  <a href="mailto:$email">$document.getModifiedByUser().getLoginName()</a> on $document.getModifiedDateString()
 </dd>

#if( $document.getFileName() && !$document.getFileName().equals("") )
 <dt>
  Uploaded Document:
 </dt> 
 <dd>
  <a href="$document.getDownloadLink($currentProject)">$document.getFileName()</a> &nbsp;&nbsp;&nbsp;($document.getSize() Kbytes)
 </dd>
#end

#if( $document.getUrl() && !$document.getUrl().equals("") )
 <dt>
  Remote URL:
 </dt> 
 <dd>
  <a href="$document.getUrl()">$document.getUrl()</a>
 </dd>
#end

</dl>
#if ($document.Text && $document.Text != "")
  <p>
   $document.getText()
  </p>
 #end
</div>
@


1.9
log
@Corrected check for document text.
@
text
@@


1.8
log
@html usage revision
@
text
@d74 1
a74 1
#if ($document.getText() && $document.getText().equals(""))
d79 1
a79 1
</div>@


1.7
log
@ui recode: now using definition list
@
text
@a4 2
<div class="docinfo">

d74 1
a74 5

</div>

<div class="doctext">
 #if ($document.getText() && $document.getText().equals(""))
a78 2
</div>

@


1.6
log
@ui recoded
@
text
@d5 1
a5 6
<div id="docinfo">
<table border="0" cellspacing="0" cellpadding="2" width="100%">
 <tr>  
  <td nowrap="nowrap" class="stat">Status:</td> 
  <td>#if( $document.getStatus()) $document.getStatus() #else Active #end</td>
 </tr>  
d7 12
d20 6
a25 4
 <tr>  
  <td nowrap="nowrap" class="stat">Description:</td> 
  <td>$document.getDescription()</td>
 </tr>  
d29 10
a38 10
 <tr>  
  <td nowrap="nowrap" class="StatText">Public Document?:</td> 
  <td>
#if( $document.isPublic() )
  Yes
#else
  No  
#end
  </td>
 </tr>  
d42 7
a48 5
 <tr>  
  <td nowrap="nowrap" class="stat">Created:</td>
  <td>by <a href="mailto:$email">$document.getProposedByUser().getLoginName()</a> on $document.getCreatedDateString()</td>
 </tr>  

d50 6
a55 4
 <tr>  
  <td nowrap="nowrap" class="stat">Last Modified:</td> 
  <td>by  <a href="mailto:$email">$document.getModifiedByUser().getLoginName()</a> on $document.getModifiedDateString()</td>
 </tr>  
d58 6
a63 4
 <tr>  
  <td nowrap="nowrap" class="stat">Uploaded Document:</td> 
  <td><a href="$document.getDownloadLink($currentProject)">$document.getFileName()</a> &nbsp;&nbsp;&nbsp;($document.getSize() Kbytes)</td>
 </tr>  
d67 6
a72 4
 <tr>  
  <td nowrap="nowrap" class="stat">Remote URL:</td> 
  <td><a href="$document.getUrl()">$document.getUrl()</a></td>
 </tr>  
d74 3
a76 1
</table>
d79 6
a84 6
<div id="doctext">
#if ($document.getText() && $document.getText().equals(""))
<p>
$document.getText()
</p>
#end
@


1.5
log
@checking for null "text" field
@
text
@d1 10
a10 12
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap><b>Project Document:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</A></SPAN></TD>  
  </TR>
</TABLE>

<HR SIZE="1" NOSHADE> 
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0">
  <TR>  
    <TD nowrap><SPAN CLASS="StatText"><b>Status:&nbsp;&nbsp;</b></SPAN></TD> 
    <TD><SPAN CLASS="PlainText">#if( $document.getStatus()) $document.getStatus() #else Active #end</SPAN></TD>    
  </TR>  
d13 4
a16 4
  <TR>  
    <TD nowrap><SPAN CLASS="StatText"><b>Description:&nbsp;&nbsp;</b></SPAN></TD> 
    <TD><SPAN CLASS="PlainText">$document.getDescription()</SPAN></TD>    
  </TR>  
d20 3
a22 2
  <TR>  
    <TD nowrap><SPAN CLASS="StatText"><b>Public Document?:&nbsp;&nbsp;</b></SPAN></TD> 
d24 1
a24 1
    <TD><SPAN CLASS="PlainText">Yes</SPAN></TD>    
d26 1
a26 1
    <TD><SPAN CLASS="PlainText">No</SPAN></TD>    
d28 2
a29 1
  </TR>  
d33 4
a36 4
  <TR>  
    <TD nowrap><SPAN CLASS="StatText"><b>Created:&nbsp;&nbsp;</b></SPAN></TD> 
    <TD><SPAN CLASS="PlainText">by <a href="mailto:$email">$document.getProposedByUser().getLoginName()</a> on $document.getCreatedDateString()</SPAN></TD>    
  </TR>  
d39 4
a42 4
  <TR>  
    <TD nowrap><SPAN CLASS="StatText"><b>Last Modified:&nbsp;&nbsp;</b></SPAN></TD> 
    <TD><SPAN CLASS="PlainText">by  <a href="mailto:$email">$document.getModifiedByUser().getLoginName()</a> on $document.getModifiedDateString()</SPAN></TD>    
  </TR>  
d45 4
a48 4
  <TR>  
    <TD nowrap><SPAN CLASS="StatText"><b>Uploaded Document :&nbsp;&nbsp;</b></SPAN></TD> 
    <TD><SPAN CLASS="PlainText"><a href="$document.getDownloadLink($currentProject)">$document.getFileName()</a> &nbsp;&nbsp;&nbsp;($document.getSize() Kbytes)</SPAN></TD>    
  </TR>  
d52 17
a68 19
  <TR>  
    <TD nowrap><SPAN CLASS="StatText"><b>Remote URL  :&nbsp;&nbsp;</b></SPAN></TD> 
    <TD><SPAN CLASS="PlainText"><a href="$document.getUrl()">$document.getUrl()</SPAN></TD>    
  </TR>  
#end
</TABLE>
<HR SIZE="1" NOSHADE> 


<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%"> 
  <TR>
      <TD colspan=2>&nbsp;</TD>
  </TR>
  #if ($document.getText() && $document.getText().equals(""))
  <TR>
    <TD class="PlainText" valign="top">$document.getText()</TD>
  </TR>
  #end
</TABLE>
@


1.4
log
@made status field dynamic. Checking for null url field.
@
text
@d65 1
d69 1
@


1.3
log
@using short formats for dates
@
text
@d11 1
a11 1
    <TD><SPAN CLASS="PlainText">$document.getStatus()</SPAN></TD>    
@


1.2
log
@Changed UI for Project Document component. Two-pane UI now: left pane for folder tree, right pane for document list.  There is now summary information about each document in the list. The List has a "root folder" that is the root of the tree. You add subfoldrs and sections to the root folder. Folders can now be nested to infinite number of levels.

Now a document can have 0-3 of the following: file upload, URL, or text (instead of having one and only one of the three as before).  There are now fields for modified by, modified date, and is_public (for the file upload).
@
text
@d35 1
a35 1
    <TD><SPAN CLASS="PlainText">by <a href="mailto:$email">$document.getProposedByUser().getLoginName()</a> on $document.getCreatedDate()</SPAN></TD>    
d41 1
a41 1
    <TD><SPAN CLASS="PlainText">by  <a href="mailto:$email">$document.getModifiedByUser().getLoginName()</a> on $document.getModifiedDate()</SPAN></TD>    
@


1.1
log
@Adding Velocity templates.
@
text
@d21 1
d30 1
d38 1
d41 1
a41 1
    <TD><SPAN CLASS="PlainText">by $document.getLastModifiedUser() on $document.getModifiedDate()</SPAN></TD>    
d47 1
a47 1
    <TD><SPAN CLASS="PlainText">$document.getFileName() $document.getSize() Kbytes</SPAN></TD>    
@

