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


1.9
date	2001.07.09.18.17.08;	author leonardr;	state dead;
branches;
next	1.8;

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

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

1.6
date	2001.05.25.21.55.06;	author dlr;	state Exp;
branches;
next	1.5;

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

1.4
date	2001.05.25.02.14.46;	author ms;	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.9
log
@Getting rid of residual download stuff.
@
text
@<div id="projectdownloadlist">

#set( $paginatableList = $currentProject.getDownloads($itemsPerPage, $filter, $acl) )
#set( $downloads = $paginatableList.getPage($paginated_page) )

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


#if( $acl.hasPermission("Project Download - Approve", $currentProject) )

 <p class="affordance">
    <a href="$currentProject.getProjectPageURL("ProjectDownloadAdd")">Add a Download</a>

#else

 #if( $acl.hasPermission("Project Download - Suggest", $currentProject) )

 <p class="affordance"> 
    <a href="$currentProject.getProjectPageURL("ProjectDownloadAdd")">Suggest a Download</a>
 #end
#end
#if( $acl.hasPermission("Project Download - Edit", $currentProject) )
   #if( !$downloads.isEmpty() )
    | <a href="$currentProject.getProjectPageURL("ProjectDownloadEdit")">Edit</a>
   #end
</p>

#end

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

#if( !$downloads.isEmpty() )
<table border="0" cellspacing="0" cellpadding="2" width="100%">
  <tr>
    <th>Size</th>
    <th nowrap="nowrap">File Name</th>
    <th nowrap="nowrap">Date Posted</th>
    <th nowrap="nowrap">Posted By</th>
    <th nowrap="nowrap">MD5 Checksum</th>
  </tr>

  #set ($rowClass="a")
  #foreach( $download in $downloads )
  <tr class="$rowClass">
    <td nowrap="nowrap">$download.getSize()</td>
    #if( $download.isApproved() )
     <td nowrap="nowrap"><a href="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</a></td>
    #else
      #if( $canApprove )
       <td nowrap="nowrap"><span class="alert"><a href="ProjectDownloadApproval">Pending approval</a>: </span><a href="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</a></td>
      #else
       <td nowrap="nowrap"><span class="alert">Pending approval: </span><a href="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</a></td>
      #end
    #end
    <td nowrap="nowrap">$download.getUploadedDate()</td>
    <td nowrap="nowrap">$download.getProposedByUser().getLoginName()</td>
    <td nowrap="nowrap">$download.getMd5()</td>
  </tr>
  <tr class="$rowClass">
    <td></td>
    <td colspan="4">$download.getDescription()</td>
  </tr>

  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
  
  #end
</table>
  
<form method="post" action="$servletName">
  #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
</form>

#else

<p class="alert">
 There are no downloads for this project.
</p>
   #if( $loginUser.isAnonymous() || !$isLoggedIn )
    <p>If you would like to add or edit a download, please <a href="/servlets/TLogin">log in</a>.</p>
   #end

#end

</div>
@


1.8
log
@html usage revisions
@
text
@@


1.7
log
@ui recoded
@
text
@a19 1

a20 1

a21 1

a25 1

@


1.6
log
@Corrected VTL syntax error(s).
@
text
@d1 2
d5 4
a8 4
<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">
d10 4
a13 1
    <A HREF="$currentProject.getProjectPageURL("ProjectDownloadAdd")">Add a Download</A>
d15 1
d17 4
a20 1
    <A HREF="$currentProject.getProjectPageURL("ProjectDownloadAdd")">Suggest a Download</A>
d22 1
d24 1
d27 1
a27 1
    | <A HREF="$currentProject.getProjectPageURL("ProjectDownloadEdit")">Edit</A>
d29 4
a32 3
#end</TD>
  </TR>
</TABLE>
a35 2
<P>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">
d37 8
a44 11
  <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>
d46 1
d48 2
a49 3
  <TR>
    <TD CLASS="PlainText" NOWRAP>$download.getSize()</TD>
    <TD></TD>
d51 1
a51 1
    <TD CLASS="ProjectName" NOWRAP><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
d54 1
a54 1
    <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>
d56 1
a56 1
             <TD CLASS="ProjectName" NOWRAP><font color="red">Pending approval : </font><A HREF="ProjectDownloadList?action=download&dlID=$download.getID()">$download.getFileName()</A></TD>
d59 15
a73 21
    <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>
d75 3
a77 3
<TR>
  <TD COLSPAN="9">
  <FORM METHOD="post" ACTION="$servletName">
d79 2
a80 3
  </FORM>
  </TD>
</TR>
d82 4
a85 3
  <TR>
    <TD CLASS="PlainText" COLSPAN="10"><I>There are no downloads for this project.</I>
  <p>
d87 1
a87 2
    <i>If you would like to add or edit a download, please
    <a href="/servlets/TLogin">log in</a>.</i>
d89 1
a89 2
    </td>
  </tr>
d92 1
a92 1
</table>
@


1.5
log
@Corrected VTL syntax error(s).
@
text
@d1 1
a1 1
#set( $paginatableList = ${currentProject.getDownloads($itemsPerPage, $filter, $acl)} )
d22 1
a22 1
#set( $canApprove = $acl.hasPermissionForProject("Project )Download - Approve", $currentProject) )
@


1.4
log
@fixed more whatever crap
@
text
@d84 4
a87 3
  <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>.
d89 2
a90 3
    </TD>
  </TR>

d93 1
a93 2
</TABLE>

@


1.3
log
@fixed broken args passing in templates made by conversion program
@
text
@d1 1
a1 1
#set( $paginatableList = ${currentProject.getDownloads($itemsPerPage, $filter, $acl)}
d22 1
a22 1
#set( $canApprove = $acl.hasPermissionForProject("Project )Download - Approve", $currentProject)
@


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
@d1 1
a1 1
#set( $paginatableList = ${currentProject.getDownloads($itemsPerPage, )$filter, $acl)}
@


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

