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


1.2
date	2001.08.23.23.49.04;	author tfahrner;	state Exp;
branches;
next	1.1;

1.1
date	2001.08.23.21.20.28;	author tfahrner;	state Exp;
branches;
next	;


desc
@@


1.2
log
@fixed task nav formatting; ul/li renders as pipe-separated list in css-1 agents. well-formed markup solves the "superfluous pipe" problem
@
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"))

<ul class="tasks">    
#if ( $acl.hasPermission("Project Document - Approve", $currentProject) && $isApproved )
<li><a href="$addFolderURL">Add a Folder</a></li>
<li><a href="$addDocURL">Add a Document</a></li>
    #elseif ( $acl.hasPermission("Project Document - Suggest", $currentProject)  && $isApproved )
<li><a href="$addFolderURL">Suggest a Folder</a></li>
<li><a href="$addDocURL">Suggest a Document</a></li>
    #end
  #if ($rootSection)
      #if ($rootSection.hasEditPermission($acl))
<li><a href="$editURL">Edit This Folder</a></li>
      #end
      #if ($rootSection.hasDeletePermission($acl))
<li><a href="$deleteURL">Delete This Folder</a></li>
      #end
  #end
</ul>
#end
@


1.1
log
@moved into separate dir
@
text
@d16 1
a16 1
<p class="affordance">    
d18 2
a19 2
<a href="$addFolderURL">Add a Folder</a> |
 <a href="$addDocURL">Add a Document</a>
d21 2
a22 2
       <a href="$addFolderURL">Suggest a Folder</a> |
       <a href="$addDocURL">Suggest a Document</a>
a23 1

d26 1
a26 1
  | <a href="$editURL">Edit This Folder</a> |
d29 1
a29 4
  | <a href="$deleteURL">Delete This Folder</a> |
  
##pipelinks suck! this should be a ul/li with css setting presentation. alas, ns4. sigh.
  
d32 1
a32 1
</p>
@

