head	1.6;
access;
symbols
	TIGRIS_1_1_0RC2:1.5
	TIGRIS_1_1_0RC1:1.5
	TIGRIS_1_1:1.5.0.4
	TIGRIS_1_0_8:1.5
	TIGRIS_1_0_8RC3:1.5
	TIGRIS_1_0_8RC2:1.5
	TIGRIS_1_0_8RC1:1.5
	TIGRIS_1_0_7:1.5
	TIGRIS_1_0_7RC3:1.5
	TIGRIS_1_0_7RC2:1.5
	TIGRIS_1_0_7RC1:1.5
	TIGRIS_1_0_6:1.5
	TIGRIS_1_0_6RC5:1.5
	TIGRIS_1_0_6RC4:1.5
	TIGRIS_1_0_6RC3:1.5
	TIGRIS_1_0_6RC2:1.5
	TIGRIS_1_0_6RC1:1.5
	TIGRIS_1_0_5:1.5
	TIGRIS_1_0_5RC6:1.5
	TIGRIS_1_0_5RC5:1.5
	TIGRIS_1_0_5RC4:1.5
	TIGRIS_1_0_5RC3:1.5
	TIGRIS_1_0_5RC2:1.5
	TIGRIS_1_0_5RC1:1.5
	TIGRIS_1_0_4:1.5
	TIGRIS_1_0_3:1.5
	TIGRIS_1_0_2:1.5
	TIGRIS_1_0_1:1.5
	TIGRIS_1_0:1.5.0.6
	TIGRIS_1_0_0:1.5
	TIGRIS_1_0_0_RC1:1.5.0.2
	dlr:1.1.1
	TIGRIS_0_9_2_4:1.3
	TIGRIS_0_9_2_3:1.3
	HELM_PEER_PORT_BRANCH:1.1.1.1
	TURBINE_PEER:1.3
	TIGRIS_0_9_2_1:1.3
	TIGRIS_0_9_2:1.3.0.2
	TIGRIS_0_9_0:1.2.0.2;
locks; strict;
comment	@# @;


1.6
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.5;

1.5
date	2001.03.24.10.34.27;	author jrobbins;	state Exp;
branches;
next	1.4;

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

1.3
date	2001.01.06.01.27.34;	author jody;	state Exp;
branches
	1.3.4.1;
next	1.2;

1.2
date	2000.12.06.23.41.21;	author leonardr;	state Exp;
branches;
next	1.1;

1.1
date	2000.12.06.23.04.47;	author leonardr;	state Exp;
branches
	1.1.1.1;
next	;

1.1.1.1
date	2001.02.21.00.37.00;	author dlr;	state Exp;
branches;
next	;

1.3.4.1
date	2001.02.01.20.40.24;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.6
log
@Removed WM templates in favor of Velocity templates.
@
text
@#set $userACL = $currentUser.getACL()

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">  
  <TR>  
    <TD class="Header">Roles for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a>:</TD> 
  </TR>  
</TABLE>

 <p class="SmallHeader">Direct Roles:</p>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" >
<TR>
  <TD class="ProjectDownloadHeader"  bgcolor="#efefef">Project</TD>
  <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
  <TD class="ProjectDownloadHeader"  bgcolor="#efefef">Role(s)</TD>
</TR>
#set $oldName=""
#foreach $project in $userACL.getProjectsWithOriginalRole()
{
 #set $first=true
 #foreach $role in $userACL.getOriginalRolesInProject($project)
 {
  <TR>
    <TD class="PlainText">
  #if ($first)
  {
   $project.getName()
   #set $first=false
  } 
   </TD>
   <td></td>
   <TD class="PlainText"><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
  </TR>
 }
  <TR>
   <TD COLSPAN="3">
    <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>
}
</TABLE>


<FORM NAME="ShowHideDerivedRolesForm" ACTION="ACLDump?userID=$currentUser.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">

#if (!$action.equals("Show Derived Roles"))
{
 <INPUT TYPE="submit" NAME="Button" VALUE="Show Derived Roles">
} #else {
 <p class="SmallHeader">Derived Roles:
 <INPUT TYPE="submit" NAME="Button" VALUE="Hide"> </p>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" >
  <TR>
   <TD class="ProjectDownloadHeader" bgcolor="#efefef">Project</TD> 
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
   <TD class="ProjectDownloadHeader" bgcolor="#efefef">Role(s)</TD>
  </TR>
 #set $oldName=""
 #foreach $project in $userACL.getProjectsWithDerivedRole()
 {
  #set $first=true
  #foreach $role in $userACL.getDerivedRolesInProject($project)
  {
  <TR>
    <TD class="PlainText">
   #if ($first)
   {
    $project.getName()
    #set $first=false
   } 
    </TD>
    <TD></TD>
    <TD class="PlainText"><a href="RoleView?roleID=$role.getID()">$role.getName()</a>
    </TD>
  </TR>
  }
  <TR>
   <TD COLSPAN="3">
    <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>

 }
 </TABLE>
}
@


1.5
log
@made tables look like other tables, added link back to UserEdit
@
text
@@


1.4
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@d5 1
a5 1
    <TD class="ProjectNameHeader">Roles for $currentUser.getRealName():</TD> 
d8 3
a10 1
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" width="100%">
d12 3
a14 2
  <TD class="StatText">Project</TD>
  <TD class="StatText">Role(s)</TD>
d30 2
a31 1
   <TD><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
d34 9
d46 1
d53 2
a54 2
 <span class="ProjectNameHeader">Derived Roles:</span>
 <INPUT TYPE="submit" NAME="Button" VALUE="Hide">
d56 1
a56 1
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" width="100%">
d58 3
a60 2
   <TD class="StatText">Project</TD> 
   <TD class="StatText">Role(s)</TD>
d69 1
a69 1
    <TD "PlainText">
d76 2
a77 1
    <TD><a href="RoleView?roleID=$role.getID()">$role.getName()</a>
d81 10
@


1.3
log
@joyfully applied styles and stucture to this .wm
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d5 1
a5 1
    <TD class="ProjectNameHeader">Roles for $currentUser.getName():</TD> 
@


1.3.4.1
log
@More fixes for ACL and ACLDump.
@
text
@d5 1
a5 1
    <TD class="ProjectNameHeader">Roles for $currentUser.getRealName():</TD> 
@


1.2
log
@ACLDump now takes a userID (whom to view) and does appropriate permission checking.
@
text
@a1 1
<font size=+2>Roles for $currentUser.getName():</font>
d3 10
a12 2
<table>
<tr><td class="StatText">Project</td> <td class="StatText">Role(s)</td></tr>
d19 2
a20 1
  <tr><td>
d26 3
a28 3
  </td>
  <td><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
  </tr>
d31 1
a31 1
</table>
d39 2
a40 1
 <font size=+2>Derived Roles:</font> <INPUT TYPE="submit" NAME="Button" VALUE="Hide">
d42 5
a46 2
 <table>
 <tr><td class="StatText">Project</td> <td class="StatText">Role(s)</td></tr>
d53 2
a54 1
   <tr><td>
d60 4
a63 3
   </td>
   <td><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
   </tr>
d66 1
a66 1
 </table>
@


1.1
log
@Added ACL dump servlet.
@
text
@d1 2
a2 1
<font size=+2>Your Roles:</font>
d7 1
a7 1
#foreach $project in $acl.getProjectsWithOriginalRole()
d10 1
a10 1
 #foreach $role in $acl.getOriginalRolesInProject($project)
d25 1
a25 1
<FORM NAME="ShowHideDerivedRolesForm" ACTION="ACLDump" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
d36 1
a36 1
 #foreach $project in $acl.getProjectsWithDerivedRole()
d39 1
a39 1
  #foreach $role in $acl.getDerivedRolesInProject($project)
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@d1 1
a1 1
#set $userACL = $currentUser.getACL()
d3 2
a4 10
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">  
  <TR>  
    <TD class="ProjectNameHeader">Roles for $currentUser.getRealName():</TD> 
  </TR>  
</TABLE>
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" width="100%">
<TR>
  <TD class="StatText">Project</TD>
  <TD class="StatText">Role(s)</TD>
</TR>
d6 1
a6 1
#foreach $project in $userACL.getProjectsWithOriginalRole()
d9 1
a9 1
 #foreach $role in $userACL.getOriginalRolesInProject($project)
d11 1
a11 2
  <TR>
    <TD class="PlainText">
d17 3
a19 3
   </TD>
   <TD><a href="RoleView?roleID=$role.getID()">$role.getName()</a></td>
  </TR>
d22 1
a22 1
</TABLE>
d24 1
a24 1
<FORM NAME="ShowHideDerivedRolesForm" ACTION="ACLDump?userID=$currentUser.getID()" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
d30 1
a30 2
 <span class="ProjectNameHeader">Derived Roles:</span>
 <INPUT TYPE="submit" NAME="Button" VALUE="Hide">
d32 2
a33 5
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" width="100%">
  <TR>
   <TD class="StatText">Project</TD> 
   <TD class="StatText">Role(s)</TD>
  </TR>
d35 1
a35 1
 #foreach $project in $userACL.getProjectsWithDerivedRole()
d38 1
a38 1
  #foreach $role in $userACL.getDerivedRolesInProject($project)
d40 1
a40 2
  <TR>
    <TD "PlainText">
d46 3
a48 4
    </TD>
    <TD><a href="RoleView?roleID=$role.getID()">$role.getName()</a>
    </TD>
  </TR>
d51 1
a51 1
 </TABLE>
@


