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($loginUser.hasRoleGrantPermission($currentProject))
#set($canGrant = true)
#end
#if($acl.hasPermission("Project - Invite", $currentProject))
#set($canInvite = true)
#end
<ul class="tasks">
#if( $canInvite )
<li><a href="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</a></li>
#end
#set ($joinMessage = "If you <a href=\"/servlets/Join\">Register</a>, you can join this Project")
#if($loginUser && !$loginUser.isAnonymous())
#set($joinMessage = "Request New Project Role")

#if( ($loginUser.getRolesInProject($currentProject).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject).size() == 0) )
#set( $joinMessage = "Join This Project")
#end
<li><a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">$joinMessage</a></li>
#if( $canGrant )
<li><a href="$currentProject.getProjectPageURL("ProjectMemberAdd")">Add New Member</a></li>
#end
#end
</ul>
@


1.1
log
@moved into separate dir
@
text
@a0 1

d2 1
a2 1
 #set($canGrant = true)
a3 1

d5 5
a9 1
 #set($canInvite = true)
d11 3
d15 9
a23 21
<p class="affordance">
   #if( $canInvite )
    <a href="$currentProject.getProjectPageURL("ProjectInvite")">Invite New Members</a>&nbsp;|
   #end


   #set ($joinMessage = "If you <a href=\"/servlets/Join\">Register</a>, you can join this Project")
   #if($loginUser && !$loginUser.isAnonymous())
    #set($joinMessage = "Request New Project Role")

    #if( ($loginUser.getRolesInProject($currentProject).size() == 0) && ($loginUser.getRequestedRolesInProject($currentProject).size() == 0) )
     #set( $joinMessage = "Join This Project")
    #end

    <a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">$joinMessage</a>

    #if( $canGrant )
     |&nbsp;<a href="$currentProject.getProjectPageURL("ProjectMemberAdd")">Add New Member</a>
    #end
   #end
</p>
@

