head	1.9;
access;
symbols
	TIGRIS_1_1_0RC2:1.6.6.1
	TIGRIS_1_1_0RC1:1.6.6.1
	TIGRIS_1_1:1.6.6.1.0.2
	TIGRIS_1_0_8:1.6.6.1
	TIGRIS_1_0_8RC3:1.6.6.1
	TIGRIS_1_0_8RC2:1.6.6.1
	TIGRIS_1_0_8RC1:1.6.6.1
	TIGRIS_1_0_7:1.6.6.1
	TIGRIS_1_0_7RC3:1.6.6.1
	TIGRIS_1_0_7RC2:1.6.6.1
	TIGRIS_1_0_7RC1:1.6.6.1
	TIGRIS_1_0_6:1.6.6.1
	TIGRIS_1_0_6RC5:1.6.6.1
	TIGRIS_1_0_6RC4:1.6.6.1
	TIGRIS_1_0_6RC3:1.6.6.1
	TIGRIS_1_0_6RC2:1.6.6.1
	TIGRIS_1_0_6RC1:1.6.6.1
	TIGRIS_1_0_5:1.6.6.1
	TIGRIS_1_0_5RC6:1.6.6.1
	TIGRIS_1_0_5RC5:1.6.6.1
	TIGRIS_1_0_5RC4:1.6.6.1
	TIGRIS_1_0_5RC3:1.6.6.1
	TIGRIS_1_0_5RC2:1.6.6.1
	TIGRIS_1_0_5RC1:1.6.6.1
	TIGRIS_1_0_4:1.6.6.1
	TIGRIS_1_0_3:1.6.6.1
	TIGRIS_1_0_2:1.6
	TIGRIS_1_0_1:1.6
	TIGRIS_1_0:1.6.0.6
	TIGRIS_1_0_0:1.6
	TIGRIS_1_0_0_RC1:1.6.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1;
locks; strict;
comment	@# @;


1.9
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.8;

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

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

1.6
date	2001.03.27.03.15.56;	author jrobbins;	state Exp;
branches
	1.6.6.1;
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.06.23.24.02;	author elicia;	state Exp;
branches;
next	1.3;

1.3
date	2001.02.27.02.21.26;	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.37.00;	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.15.21.25.33;	author elicia;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2001.02.15.21.42.47;	author elicia;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2001.02.20.23.26.05;	author elicia;	state Exp;
branches;
next	;

1.6.6.1
date	2001.04.26.02.01.06;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Removed WM templates in favor of Velocity templates.
@
text
@#set $paginatableList = $currentProject.getDownloads($itemsPerPage, $filter, $acl);
#set $downloads = $paginatableList.getPage($paginated_page);
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="85%">
  <TR>
    <TD CLASS="Header" NOWRAP><b>Project Download List:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
    <TD ALIGN="right" CLASS="ProjectName">
#if ($acl.hasPermission("Project Download - Approve", $currentProject))
{
    <A HREF="$currentProject.getProjectPageURL("ProjectDownloadAdd")">Add a Download</A>
} #else {
 #if ($acl.hasPermission("Project Download - Suggest", $currentProject))
 {
    <A HREF="$currentProject.getProjectPageURL("ProjectDownloadAdd")">Suggest a Download</A>
 }
}
#if ($acl.hasPermission("Project Download - Edit", $currentProject))
{
   #if (!$downloads.isEmpty())
   {
    | <A HREF="$currentProject.getProjectPageURL("ProjectDownloadEdit")">Edit</A>
   }
}</TD>
  </TR>
</TABLE>

#set $canApprove = $acl.hasPermissionForProject("Project Download - Approve", $currentProject)

<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
#if (!$downloads.isEmpty())
{
  <TR>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef"><b>Size</b></TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP><b>File Name</b></TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP><b>Date Posted</b></TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP><b>Posted By</b></TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP><b>MD5 Checksum</b></TD>
  </TR>

  #foreach $download in $downloads
  {
  <TR>
    <TD CLASS="PlainText" NOWRAP>$download.getSize()</TD>
    <TD></TD>
    #if ($download.isApproved())
    {
    <TD CLASS="ProjectName" NOWRAP><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
    } #else {
      #if ($canApprove)
      {
    <TD CLASS="ProjectName" NOWRAP><font color="red"><a href="ProjectDownloadApproval">Pending approval</a> : </font><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
      } #else {
             <TD CLASS="ProjectName" NOWRAP><font color="red">Pending approval : </font><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
      }
    }
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getUploadedDate()</TD>
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getProposedByUser().getLoginName()</TD>
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getMd5()</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD COLSPAN="7" CLASS="PlainText">$download.getDescription()</TD>
  </TR>
  <TR>
    <TD COLSPAN="9">
      <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="9">
  <FORM METHOD="post" ACTION="$servletName">
  #parse "$SERVLET_TEMPLATE_ROOT;/org/tigris/helm/tool/paginate/Filter.wm" 
  </FORM>
  </TD>
</TR>
} #else {
  <TR>
    <TD CLASS="PlainText" COLSPAN="10"><I>There are no downloads for this project.</I>
  <P>
   #if (($loginUser.isAnonymous()) || (!isLoggedIn))
   {
    <i>If you would like to add or edit a download, please <a href="/servlets/TLogin">log in</a></i>.
   }
    </TD>
  </TR>

}

</TABLE>

@


1.8
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@@


1.7
log
@added pagination and filtering
@
text
@d5 1
a5 1
    <TD CLASS="Header" NOWRAP>Project Download List: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
d33 1
a33 1
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Size</TD>
d35 1
a35 1
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>File Name</TD>
d37 1
a37 1
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Date Posted</TD>
d39 1
a39 1
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Posted By</TD>
d41 1
a41 1
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>MD5 Checksum</TD>
@


1.6
log
@made divider line go all the way across
@
text
@d1 2
a2 1
#set $downloads = $currentProject.getProjectDownloads()
d57 1
a57 1
    <TD CLASS="ProjectName" NOWRAP><font color="red">Pending approval : </font><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
d82 7
d99 1
@


1.6.6.1
log
@updated name of getDownloads() method to current paginated one
@
text
@d1 1
a1 1
#set $downloads = $currentProject.getDownloads($itemsPerPage, $filter, $acl)
d42 1
@


1.5
log
@made ui consistant. added line prompting guest users to log in if they wish to add or edit.
@
text
@d72 1
a72 1
    <TD COLSPAN="8">
@


1.4
log
@moved add functionality to projectDownloadAdd
@
text
@d2 1
a2 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
d29 2
a42 2
#if (!$downloads.isEmpty())
{
d83 7
a89 1
    <TD CLASS="PlainText" COLSPAN="10"><I>There are no downloads for this project.</I></TD>
@


1.3
log
@changed links to new name of list servlet
@
text
@d1 1
d5 2
a6 1
#if ($acl.hasPermission("Project Download - Delete", $currentProject))
d8 10
a17 1
   #if ($downloads)
d19 1
a19 1
    <TD ALIGN="right" CLASS="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDownloadEdit")">Edit</A></TD>
d21 1
a21 1
}
d27 1
d41 1
a41 1
#if ($downloads)
a88 60
<P>

#if ($acl.hasPermission("Project Download - Suggest", $currentProject) || $acl.hasPermission("Project Download - Approve", $currentProject))
{
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR>
  #if ($canApprove)
  {
    <TD CLASS="ProjectDownloadHeader"
        BGCOLOR="#efefef" NOWRAP>Add or Replace a Download</TD>
   } #else {
    <TD CLASS="ProjectDownloadHeader"
        BGCOLOR="#efefef" NOWRAP>Suggest or Replace a Download</TD>
   }
  </TR>
  <TR>
    <FORM METHOD="post" ACTION="/servlets/ProjectDownloadList?action=Upload+File" ENCTYPE="multipart/form-data">
    <TD CLASS="PlainText">
      <TABLE>
        <TR>
          <TD CLASS="InputHeader">File: &nbsp;</TD>
          <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
        </TR>
        <TR>
          <TD CLASS="PlainText" COLSPAN="2">
            <small>
            Click <I>Browse</I> and select a file.  If you do not see a
            <I>Browse</I> button, your browser does not support file uploads.
            (Windows users, set <I>Files of Type:</I> to be <I>All Files
            (*.*)</I> to get a complete file listing.)<br>
            The <I>File</I> field cannot be used to rename files.
            </small>
          </TD>
        <TR>
          <TD CLASS="InputHeader">Description: &nbsp;</TD>
          <TD><INPUT TYPE="text" NAME="description" VALUE="$description"
                     SIZE="50"></TD>
        </TR>
        <TR>
          <TD CLASS="InputHeader">Public: &nbsp;</TD>
          <TD>
            <INPUT TYPE="checkbox" NAME="isPublic" VALUE="Y"
  #if ($isPublic)
  {
                     CHECKED
  }
               >
          </TD>
        </TR>
        </TR>
        <TR>
          <TD></TD>
          <TD><INPUT TYPE="submit" VALUE="Upload File"></TD>
        </TR>
      </TABLE>
    </TD>
    </form>
  </TR>
</TABLE>
}
@


1.2
log
@add new files from the branch to the head (there should be only added
files, ie. no modified files).
@
text
@d42 1
a42 1
    <TD CLASS="ProjectName" NOWRAP><font color="red"><a href="ProjectDownloadApproval">Pending approval</a> : </font><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
d44 1
a44 1
    <TD CLASS="ProjectName" NOWRAP><font color="red">Pending approval : </font><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
@


1.1
log
@file ProjectDownloadList.wm was initially added on branch HELM_PEER_PORT_BRANCH.
@
text
@d1 136
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 136
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
  <TR>
    <TD CLASS="Header" NOWRAP>Project Download List: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
#if ($acl.hasPermission("Project Download - Delete", $currentProject))
{
   #if ($downloads)
   {
    <TD ALIGN="right" CLASS="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDownloadEdit")">Edit</A></TD>
   }
}
  </TR>
</TABLE>

#set $canApprove = $acl.hasPermissionForProject("Project Download - Approve", $currentProject)

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Size</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>File Name</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Date Posted</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Posted By</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>MD5 Checksum</TD>
  </TR>

#if ($downloads)
{
  #foreach $download in $downloads
  {
  <TR>
    <TD CLASS="PlainText" NOWRAP>$download.getSize()</TD>
    <TD></TD>
    #if ($download.isApproved())
    {
    <TD CLASS="ProjectName" NOWRAP><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
    } #else {
      #if ($canApprove)
      {
    <TD CLASS="ProjectName" NOWRAP><font color="red"><a href="ProjectDownloadApproval">Pending approval</a> : </font><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
      } #else {
    <TD CLASS="ProjectName" NOWRAP><font color="red">Pending approval : </font><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
      }
    }
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getUploadedDate()</TD>
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getProposedByUser().getLoginName()</TD>
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getMd5()</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD COLSPAN="7" CLASS="PlainText">$download.getDescription()</TD>
  </TR>
  <TR>
    <TD COLSPAN="8">
      <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>
  }
} #else {
  <TR>
    <TD CLASS="PlainText" COLSPAN="10"><I>There are no downloads for this project.</I></TD>
  </TR>
}

</TABLE>

<P>

#if ($acl.hasPermission("Project Download - Suggest", $currentProject) || $acl.hasPermission("Project Download - Approve", $currentProject))
{
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR>
  #if ($canApprove)
  {
    <TD CLASS="ProjectDownloadHeader"
        BGCOLOR="#efefef" NOWRAP>Add or Replace a Download</TD>
   } #else {
    <TD CLASS="ProjectDownloadHeader"
        BGCOLOR="#efefef" NOWRAP>Suggest or Replace a Download</TD>
   }
  </TR>
  <TR>
    <FORM METHOD="post" ACTION="/servlets/ProjectDownloadList?action=Upload+File" ENCTYPE="multipart/form-data">
    <TD CLASS="PlainText">
      <TABLE>
        <TR>
          <TD CLASS="InputHeader">File: &nbsp;</TD>
          <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
        </TR>
        <TR>
          <TD CLASS="PlainText" COLSPAN="2">
            <small>
            Click <I>Browse</I> and select a file.  If you do not see a
            <I>Browse</I> button, your browser does not support file uploads.
            (Windows users, set <I>Files of Type:</I> to be <I>All Files
            (*.*)</I> to get a complete file listing.)<br>
            The <I>File</I> field cannot be used to rename files.
            </small>
          </TD>
        <TR>
          <TD CLASS="InputHeader">Description: &nbsp;</TD>
          <TD><INPUT TYPE="text" NAME="description" VALUE="$description"
                     SIZE="50"></TD>
        </TR>
        <TR>
          <TD CLASS="InputHeader">Public: &nbsp;</TD>
          <TD>
            <INPUT TYPE="checkbox" NAME="isPublic" VALUE="Y"
  #if ($isPublic)
  {
                     CHECKED
  }
               >
          </TD>
        </TR>
        </TR>
        <TR>
          <TD></TD>
          <TD><INPUT TYPE="submit" VALUE="Upload File"></TD>
        </TR>
      </TABLE>
    </TD>
    </form>
  </TR>
</TABLE>
}
@


1.1.2.1
log
@changed name
@
text
@a0 119
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" BORDER="0" WIDTH="100%">
  <TR>
    <TD CLASS="Header" NOWRAP>Downloads: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
#if ($acl.hasPermissionForProject("Project Download - Delete", $currentProject))
{
   #if ($downloads)
   {
    <TD ALIGN="right" CLASS="ProjectName"><A HREF="$currentProject.getProjectPageURL("ProjectDownloadEdit")">Edit</A></TD>
   }
}
  </TR>
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef">Size</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>File Name</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Upload Date</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Uploaded By</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>MD5 Checksum</TD>
  </TR>

#if ($downloads)
{
  #foreach $download in $downloads
  {
  <TR>
    <TD CLASS="PlainText" NOWRAP>$download.getSize()</TD>
    <TD></TD>
    <TD CLASS="ProjectName" NOWRAP><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getName()</A></TD>
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getUploadDate()</TD>
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getUploadedBy().getLoginID()</TD>
    <TD></TD>
    <TD CLASS="PlainText" NOWRAP>$download.getMD5Checksum()</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD></TD>
    <TD COLSPAN="7" CLASS="PlainText">$download.getDescription()</TD>
  </TR>
  <TR>
    <TD COLSPAN="8">
      <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>
  }
} #else {
  <TR>
    <TD CLASS="PlainText" COLSPAN="10"><I>There are no downloads for this project.</I></TD>
  </TR>
}

</TABLE>

<P>

#if ($acl.hasPermissionForProject("Project Download - Suggest", $currentProject) || $acl.hasPermissionForProject("Project Download - Approve", $currentProject))
{
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
  <TR>
    <TD CLASS="ProjectDownloadHeader"
        BGCOLOR="#efefef" NOWRAP>Add or Replace a Download</TD>
  </TR>
  <TR>
    <FORM METHOD="post" ACTION="/servlets/ProjectDownload?action=Upload+File"
          ENCTYPE="multipart/form-data">
    <TD CLASS="PlainText">
      <TABLE>
        <TR>
          <TD CLASS="InputHeader">File: &nbsp;</TD>
          <TD><INPUT TYPE="file" NAME="file" SIZE="20"></TD>
        </TR>
        <TR>
          <TD CLASS="PlainText" COLSPAN="2">
            <small>
            Click <I>Browse</I> and select a file.  If you do not see a
            <I>Browse</I> button, your browser does not support file uploads.
            (Windows users, set <I>Files of Type:</I> to be <I>All Files
            (*.*)</I> to get a complete file listing.)<br>
            The <I>File</I> field cannot be used to rename files.
            </small>
          </TD>
        <TR>
          <TD CLASS="InputHeader">Description: &nbsp;</TD>
          <TD><INPUT TYPE="text" NAME="description" VALUE="$description"
                     SIZE="50"></TD>
        </TR>
        <TR>
          <TD CLASS="InputHeader">Public: &nbsp;</TD>
          <TD>
            <INPUT TYPE="checkbox" NAME="isPublic" VALUE="Y"
  #if ($isPublic)
  {
                     CHECKED
  }
               >
          </TD>
        </TR>
        </TR>
        <TR>
          <TD></TD>
          <TD><INPUT TYPE="submit" VALUE="Upload File"></TD>
        </TR>
      </TABLE>
    </TD>
    </form>
  </TR>
</TABLE>
}
@


1.1.2.2
log
@changed field names
Submitted by:elicia
Reviewed by:dlr
@
text
@d34 1
a34 1
    <TD CLASS="ProjectName" NOWRAP><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
d36 1
a36 1
    <TD CLASS="PlainText" NOWRAP>$download.getUploadedDate()</TD>
d38 1
a38 1
    <TD CLASS="PlainText" NOWRAP>$download.getProposedByUser().getLoginName()</TD>
d40 1
a40 1
    <TD CLASS="PlainText" NOWRAP>$download.getMd5()</TD>
d75 1
a75 1
    <FORM METHOD="post" ACTION="/servlets/ProjectDownloadList?action=Upload+File"
@


1.1.2.3
log
@changed downloadID field

changed link for download from ProjectDownload to ProjectDownloadList
@
text
@d34 1
a34 1
    <TD CLASS="ProjectName" NOWRAP><A HREF="ProjectDownloadList?action=download&dlID=$download.getDownloadId()">$download.getFileName()</A></TD>
@


1.1.2.4
log
@added checking for approval status
@
text
@d3 2
a4 2
    <TD CLASS="Header" NOWRAP>Project Download List: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN></TD>  
#if ($acl.hasPermission("Project Download - Delete", $currentProject))
a13 2
#set $canApprove = $acl.hasPermissionForProject("Project Download - Approve", $currentProject)

d20 1
a20 1
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Date Posted</TD>
d22 1
a22 1
    <TD CLASS="ProjectDownloadHeader" BGCOLOR="#efefef" NOWRAP>Posted By</TD>
d34 1
a34 11
    #if ($download.isApproved())
    {
    <TD CLASS="ProjectName" NOWRAP><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
    } #else {
      #if ($canApprove)
      {
    <TD CLASS="ProjectName" NOWRAP><font color="red"><a href="ProjectDownloadApproval">Pending approval</a> : </font><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
      } #else {
    <TD CLASS="ProjectName" NOWRAP><font color="red">Pending approval : </font><A HREF="ProjectDownload?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
      }
    }
d67 1
a67 1
#if ($acl.hasPermission("Project Download - Suggest", $currentProject) || $acl.hasPermission("Project Download - Approve", $currentProject))
a70 2
  #if ($canApprove)
  {
a72 4
   } #else {
    <TD CLASS="ProjectDownloadHeader"
        BGCOLOR="#efefef" NOWRAP>Suggest or Replace a Download</TD>
   }
d75 2
a76 1
    <FORM METHOD="post" ACTION="/servlets/ProjectDownloadList?action=Upload+File" ENCTYPE="multipart/form-data">
@


