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


1.8
date	2001.08.30.17.23.14;	author dlr;	state Exp;
branches;
next	1.7;

1.7
date	2001.08.30.00.50.23;	author dlr;	state Exp;
branches;
next	1.6;

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

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

1.4
date	2001.08.29.21.05.54;	author dlr;	state Exp;
branches;
next	1.3;

1.3
date	2001.08.29.20.57.01;	author dlr;	state Exp;
branches;
next	1.2;

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.8
log
@If the user has an approved role in the project, don't show the
interest expression/removal links.
@
text
@#set( $myRoles = $loginUser.getRolesInProject($currentProject) )
#set( $myRequestedRoles = $loginUser.getRequestedRolesInProject($currentProject) )

#if( $currentProject.isCategory() )
#set( $projectType = "Category" )
#elseif( $currentProject.isGroup() )
#set( $projectType = "Group" )
#else
#set( $projectType = "Project" )
#end

<ul class="tasks">
#if( $currentProject.isGroup() ) 
#if( $acl.hasPermission("ProjectGroup - Edit", $currentProject) )
<li><a href="ProjectGroupEdit?projectGroupID=$currentProject.getID()">Edit this $projectType</a></li>
#end
#else
#if( $acl.hasPermission("Project - Edit", $currentProject) )
<li><a href="$currentProject.getProjectPageURL("ProjectEdit")">Edit this $projectType</a></li>
#end
#end

#if( !$currentProject.isCategory() )
#* Since block does nothing, commented out. (dlr)
#if( $acl.hasPermission("Project - Edit", $currentProject) )
#end
*#
#if( $loginUser && !$loginUser.isAnonymous() )
#if( $acl.hasPermission("Role - Request", $currentProject) )
#if( $myRoles.isEmpty() && $myRequestedRoles.isEmpty() )
<li><a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This $projectType</a></li>
#else
<li><a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</a></li>
#end
#end

#else
<li><p>If you <a href="/servlets/Join">register</a> or <a href="/servlets/TLogin/">log in</a>, you could join this project.</p></li>
#end
#end

#if ( $loginUser && !$loginUser.isAnonymous() && $acl.hasPermission("User - Edit - Self", $currentDomain) && !$loginUser.hasApprovedRoleInProject($currentProject) )
#if ($loginUser.isAlreadyInterestedBy($currentProject))
<li><a href="/servlets/UserProjectInterestDelete?interestID=$currentProject.getID()">Remove Interest In This $projectType</a></li>
#else
<li><a href="/servlets/UserProjectInterestAdd?interestID=$currentProject.getID()">Express Interest In This $projectType</a></li>
#end
#end
</ul>
@


1.7
log
@Show express/remove interest link shown is now based on whether the
interest is already possessed.
@
text
@d42 1
a42 1
#if ( $loginUser && !$loginUser.isAnonymous() && $acl.hasPermission("User - Edit - Self", $currentDomain) )
@


1.6
log
@Moved interest links to last position in list, and made them visible
all the time and context sensitive to project type.
@
text
@d43 3
d47 1
a47 1
<li><a href="/servlets/UserProjectInterestDelete?interestID=$currentProject.getID()">Remove Interest In This $projectType</a></li>
@


1.5
log
@Link interest toggles to current project.
@
text
@d12 1
a12 1
<ul class="tasks">    
a28 4
#if ($acl.hasPermission("User - Edit - Self", $currentDomain))
<li><a href="/servlets/UserProjectInterestAdd?interestID=$currentProject.getID()">Express Interest In This Project</a></li>
<li><a href="/servlets/UserProjectInterestDelete?interestID=$currentProject.getID()">Remove Interest In This Project</a></li>
#end
d40 5
@


1.4
log
@Added project interest links.
@
text
@d30 2
a31 2
<li><a href="/servlets/UserProjectInterestAdd">Express Interest In Project</a></li>
<li><a href="/servlets/UserProjectInterestDelete">Remove Interest In Project</a></li>
@


1.3
log
@Commented out unused block.
@
text
@d29 4
@


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
@d24 1
d27 1
@


1.1
log
@moved into separate dir
@
text
@d3 1
a3 1
         
d5 1
a5 1
  #set( $projectType = "Category" )
d7 1
a7 1
  #set( $projectType = "Group" )
d9 1
a9 1
  #set( $projectType = "Project" )
d12 2
a13 2
#if( $currentProject.isGroup() )
<p class="affordance">    
d15 2
a16 3
<a href="ProjectGroupEdit?projectGroupID=$currentProject.getID()">Edit
                    this $projectType</a>
    #end
d18 3
a20 5
    #if( $acl.hasPermission("Project - Edit", $currentProject) )
<a href="$currentProject.getProjectPageURL("ProjectEdit")">Edit
                    this $projectType</a>
    #end
    </p>
d24 10
a33 3
    #if( $acl.hasPermission("Project - Edit", $currentProject) )
                |
    #end
d35 3
a37 13
    #if( $loginUser && !$loginUser.isAnonymous() )
            #if( $acl.hasPermission("Role - Request", $currentProject) )
<p class="affordance">                    
#if( $myRoles.isEmpty() && $myRequestedRoles.isEmpty() )
<a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Join This $projectType</a>
                    #else
<a href="$currentProject.getProjectPageURL("ProjectMembershipRequest")">Request New Project Role</a>
                    #end
                 </p>
            #end
    #else
      <p>If you <a href="/servlets/Join">register</a> or <a href="/servlets/TLogin/">log in</a>, you could join this project.</p>
    #end
d39 1
@

