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


1.4
date	2001.08.21.22.13.38;	author tfahrner;	state dead;
branches;
next	1.3;

1.3
date	2001.08.20.22.29.20;	author tfahrner;	state Exp;
branches;
next	1.2;

1.2
date	2001.07.24.04.50.49;	author elicia;	state Exp;
branches;
next	1.1;

1.1
date	2001.06.28.03.54.43;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.4
log
@moving task nav to separate dir
@
text
@#if( $acl.hasPermission("Project Document - Suggest", $currentProject) )

  #if ($rootSection)
    #set($rootSectionID = $rootSection.getID())
    #set($isApproved = $rootSection.isApproved())
  #else
    #set($rootSectionID = $0)
    #set($isApproved = true)
  #end

    #set($addFolderURL = $currentProject.getProjectPageURL("ProjectSectionAdd", "rootSectionID=$rootSectionID"))
    #set($addDocURL = $currentProject.getProjectPageURL("ProjectDocumentAdd", "rootSectionID=$rootSectionID"))
    #set( $editURL = $currentProject.getProjectPageURL("ProjectSectionEdit", "sectionID=$rootSectionID"))
    #set($deleteURL = $currentProject.getProjectPageURL("ProjectSectionDelete", "sectionID=$rootSectionID"))

<p class="affordance">    
#if ( $acl.hasPermission("Project Document - Approve", $currentProject) && $isApproved )
<a href="$addFolderURL">Add a Folder</a> |
 <a href="$addDocURL">Add a Document</a>
    #elseif ( $acl.hasPermission("Project Document - Suggest", $currentProject)  && $isApproved )
       <a href="$addFolderURL">Suggest a Folder</a> |
       <a href="$addDocURL">Suggest a Document</a>
    #end

  #if ($rootSection)
      #if ($rootSection.hasEditPermission($acl))
  | <a href="$editURL">Edit This Folder</a> |
      #end
      #if ($rootSection.hasDeletePermission($acl))
  | <a href="$deleteURL">Delete This Folder</a> |
  
##pipelinks suck! this should be a ul/li with css setting presentation. alas, ns4. sigh.
  
      #end
  #end
</p>
#end
@


1.3
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@@


1.2
log
@doing permission checking using hasEditPermission and hasDeletePermission
@
text
@a2 4
  <tr>
   <th>Tasks : &nbsp;&nbsp;</th>
   <td><div class="pipelinks">

d16 4
a19 2
    #if ( $acl.hasPermission("Project Document - Approve", $currentProject) && $isApproved )
       <a href="$addFolderURL">Add a Folder</a> | <a href="$addDocURL">Add a Document</a>
d21 2
a22 1
       <a href="$addFolderURL">Suggest a Folder</a> | <a href="$addDocURL">Suggest a Document</a>
d27 1
a27 1
  | <a href="$editURL">Edit This Folder</a> 
d30 4
a33 1
  | <a href="$deleteURL">Delete This Folder</a> 
d36 1
a36 4
   
   </div></td>
  </tr>

@


1.1
log
@moved Tasks files from the docs folder to here. Added task file for Documentview. tweaked some of the logic to correspond with the template,which have diverged since these files were created.
@
text
@d27 1
a27 1
      #if ($rootSection.assertEditPermission($acl))
d30 1
a30 1
      #if ($rootSection.assertDeletePermission($acl))
@

