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


1.13
date	2001.08.20.22.29.24;	author tfahrner;	state Exp;
branches;
next	1.12;

1.12
date	2001.08.03.05.45.08;	author tfahrner;	state Exp;
branches;
next	1.11;

1.11
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.10;

1.10
date	2001.07.31.00.01.57;	author tfahrner;	state Exp;
branches;
next	1.9;

1.9
date	2001.07.30.21.59.24;	author tfahrner;	state Exp;
branches;
next	1.8;

1.8
date	2001.06.17.03.39.03;	author jefflove;	state Exp;
branches;
next	1.7;

1.7
date	2001.06.13.21.22.23;	author beril;	state Exp;
branches;
next	1.6;

1.6
date	2001.06.01.21.32.51;	author leonardr;	state Exp;
branches;
next	1.5;

1.5
date	2001.06.01.21.28.32;	author leonardr;	state Exp;
branches;
next	1.4;

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

1.3
date	2001.05.25.01.49.13;	author ms;	state Exp;
branches;
next	1.2;

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

1.1
date	2001.05.23.02.03.15;	author dlr;	state Exp;
branches;
next	;


desc
@@


1.13
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@<div id="permissiondump" class="app">

#set( $userACL = $currentUser.getACL() )

##Hacks to prevent the huge list from showing up by default.
#if ($simpleFilterValue.equals(""))
 #set ($simpleFilterValue=$currentProject.getName())
#end
#if ($simpleFilterValue.equals("*"))
 #set ($simpleFilterValue="")
#end

#set( $projects = $userACL.getProjectsWithAnyRole($simpleFilterValue) )

 <h3>Permissions for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a></h3>

<div id="hostpermissions">
##The table of host permissions
 <h4>Host Permissions</h4>
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th nowrap="nowrap">Action</th>
   <th>&nbsp;</th>
  </tr>
#set ($rowClass="a")
#foreach( $action in $host.getHostActions() )
  <tr class="$rowClass">
   <td>$action.getName()</td>
   <td><div>
  #set( $first = true )
  #set( $resources = $userACL.getResourcesForActionInProject($action, $currentDomain.getHostProject(), true) )
  #foreach( $resource in $resources )
   #if( !$first )
    </div><div>
   #else
    #set( $first = false )
   #end 
   $resource
  #end
   </div></td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
#end
 </table>
</div>
<div id="domainpermissions">
##The table of domain permissions
 <h4>Domain Permissions</h4>
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th nowrap="nowrap">Action</th>
   <th nowrap="nowrap">All Projects</th>
  </tr>
#set ($rowClass="a")
#foreach( $action in $host.getDomainActions() )
  <tr class="$rowClass"> 
   <td>$action.getName()</td>
   <td><div>
  #set( $first = true )
  #set( $resources = $userACL.getResourcesForActionInProject($action, $currentDomain.getSpecialProject(), true))

  #foreach( $resource in $resources )
   #if( !$first )
    </div><div>
   #else
    #set( $first = false )
   #end 
   $resource
  #end
   </div></td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
#end
 </table>
</div>

<div id="projectpermissions">
##The table of project permissions
 <h4>Project Permissions</h4>
 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th>&nbsp;</th>
  #foreach( $project in $projects )
   <th nowrap="nowrap">$project.getName()</th>
  #end
  </tr>
 #set ($rowClass="a")
 #foreach( $action in $host.getProjectActions() )
  <tr class="$rowClass">
  <td>$action.getName()</td>
 #foreach( $project in $projects )
  <td><div>
  #set( $first = true )
  #set( $resources = $userACL.getResourcesForActionInProject($action, $project, true))
  #foreach( $resource in $resources )
   #if( !$first )
    </div><div>
   #else
    #set( $first = false )
   #end 
   $resource
  #end
  </div></td>
  #end
 </tr>
 #if ($rowClass.equals("a"))
    #set ($rowClass="b")
 #else 
    #set ($rowClass="a")
 #end
#end
 </table>
</div>

##Another hack cancelling out the above hack.
#if ($simpleFilterValue.equals(""))
 #set ($simpleFilterValue="*")
#end

<p>A filter of "*" will display permissions for all projects in which this user has any role (note that the resulting page may be huge)</p>
<form method="post" action="PermissionDump">
  #parse( "org/tigris/helm/tool/paginate/Filter.vm" )
</form>
</div>
@


1.12
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
d19 1
a19 1
 <h4>Host Permissions:</h4>
d52 1
a52 1
 <h4>Domain Permissions:</h4>
d87 1
a87 1
 <h4>Project Permissions:</h4>
@


1.11
log
@included "task nav" below headlines
@
text
@a4 3
#if( !$loginUser.isAnonymous() && $servletTaskBar.available($servletName))
#parse("$servletTaskBar.getPath($servletName)")
#end
@


1.10
log
@pulled admin options, added headlines
@
text
@d5 4
@


1.9
log
@html usage revision to synch with scarab
@
text
@d2 3
d19 1
a19 1
<div id="hostpermissions" class="app">
d52 1
a52 1
<div id="domainpermissions" class="app">
d87 1
a87 1
<div id="projectpermissions" class="app">
d134 1
a134 1
</div>@


1.8
log
@html usage revisions
@
text
@d1 1
a1 1
<div id="permissiondump">
d16 1
a16 1
<div id="hostpermissions">
d19 1
a19 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
d49 1
a49 1
<div id="domainpermissions">
d52 1
a52 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
d84 1
a84 1
<div id="projectpermissions">
d87 1
a87 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.7
log
@xhtml cleanup
@
text
@d14 1
a14 1
 <h4>Permissions for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a>:</h4>
d18 1
a18 1
 <h3>Host Permissions:</h3>
d22 1
a22 1
   <th></th>
d28 1
a28 1
   <td><p>
d33 1
a33 1
    <br />
d39 1
a39 1
   </p></td>
d51 1
a51 1
 <h3>Domain Permissions:</h3>
d61 1
a61 1
   <td><p>
d67 1
a67 1
    <br />
d73 1
a73 1
   </p></td>
d86 1
a86 1
 <h3>Project Permissions:</h3>
d89 1
a89 1
   <th></th>
d99 1
a99 1
  <td><p>
d104 1
a104 1
    <br />
d110 1
a110 1
  </p></td>
@


1.6
log
@Added information talking about secret '*' filter codeword.
@
text
@d1 1
d14 1
a14 5
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2">  
  <TR>  
    <TD class="Header">Permissions for <a href="/servlets/UserEdit?userID=$currentUser.getID()">$currentUser.getRealName()</a>:</TD>
  </TR>  
</TABLE> 
d16 1
d18 7
a24 7
<TABLE BORDER="0" CELLSPACING="0" cellpadding="2">
  <TR>
    <TD colspan="2" class="SmallHeader">Host Permissions:</TD>
  </TR>
  <TR>
    <TD colspan="2" class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
  </TR>
d26 3
a28 3
  <TR>
    <TD class="PlainText" width="150">$action.getName()</TD>
    <TD class="PlainText" width="250">
d33 1
a33 1
    <br>
d39 11
a49 20
  &nbsp;</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>

#end
</TABLE>
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">   
  <TR>   
    <TD><p><hr size="1" noshade><p></TD>  
  </TR>   
</TABLE>

d51 7
a57 9
<TABLE BORDER="0" CELLSPACING="0" cellpadding="2"> 
  <TR>
    <TD colspan=2 class="SmallHeader">Domain Permissions:</TD>
  </TR>
  <TR valign="top"> 
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">Action</TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">All Projects</TD>
  </TR> 
d59 3
a61 4
  <TR valign="top"> 
  <TD class="PlainText">$action.getName()</TD>
  <TD></TD>
  <TD class="PlainText">
d67 1
a67 1
    <br>
d71 8
a78 1
   <span nowrap>$resource</span>
d80 18
a97 37
  &nbsp;</TD>
  </TR>
  <TR>
   <TD COLSPAN="5">
    <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>
#end
</TABLE>

<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" WIDTH="100%">    
  <TR>    
    <TD><p><hr size="1" noshade><p></TD>   
  </TR>    
</TABLE> 
 
##The table of project permissions 
<TABLE BORDER="0" CELLSPACING="0" cellpadding="2" width="100%">  
  <TR>
    <TD colspan=2 class="SmallHeader">Project Permissions:</TD>
  </TR>
</TABLE>
<TABLE BORDER="1" CELLSPACING="0" cellpadding="2" width="100%">  
  <TR valign="top"> 
<TD class="PlainTextBold">&nbsp;</TD>
#foreach( $project in $projects )
    <TD class="PlainText" bgcolor="#efefef" nowrap><b>$project.getName()</b></TD>
#end
</TR>

#foreach( $action in $host.getProjectActions() )
 <TR valign="top">
 <TD class="PlainText"  bgcolor="#efefef" nowrap>$action.getName()</TD>
d99 1
a99 1
  <TD class="PlainText" nowrap>
d104 1
a104 1
    <br>
d110 1
a110 1
  &nbsp;</TD>
d112 6
a117 1
 </TR>
d119 2
a120 4

</TABLE>

<TABLE WIDTH="100%">
d127 2
a128 9
<TR>
  <TD><hr size="1" noshade></TD>
</TR>
<TR>
  <TD class="PlainText">A filter of "*" will display permissions for all projects in which this user has any role (note that the resulting page may be huge)</TD>
</TR>
<TR>
  <TD>
  <FORM METHOD="post" ACTION="PermissionDump">
d130 2
a131 5
  </FORM>
  </TD>
</TR>

</TABLE>
@


1.5
log
@Made PermissionDump less of a burden on browsers.
@
text
@d141 9
d151 1
a151 1
  <TD COLSPAN="3"><hr size="1" noshade></TD>
d154 4
a157 1
  <TD COLSPAN="3">
@


1.4
log
@Corrected VTL syntax error(s).
@
text
@d2 11
a12 1
#set( $projects = $userACL.getProjectsWithAnyRole() )
d140 12
a152 1

@


1.3
log
@fixed broken args passing in templates made by conversion program
@
text
@d22 1
a22 1
  #set( $resources = $userACL.getResourcesForActionInProject($action, $currentDomain.getHostProject(), true)
@


1.2
log
@Corrected Velocity conversion errors and got rid of vestigal "public projects" column.
@
text
@d22 1
a22 1
  #set( $resources = $userACL.getResourcesForActionInProject($action, )$currentDomain.getHostProject(), true)
@


1.1
log
@Adding Velocity templates.
@
text
@a59 2
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="ProjectDownloadHeader" bgcolor="#efefef">All Public Projects</TD>
d67 1
a67 1
  #set( $resources = $userACL.getResourcesForActionInProject($action, )$currentDomain.getSpecialProject(), true)
a77 15

 <TD></TD>
 <TD class="PlainText">
  #set( $first = true )
  #set( $resources = $userACL.getResourcesForActionInProject($action, )$currentDomain.getSpecialPublicProject(), true)

  #foreach( $resource in $resources )
   #if( !$first )
    <br>
   #else
    #set( $first = false )
   #end 
   <span nowrap>$resource</span>
   #end
  &nbsp;</TD>
d117 1
a117 1
  #set( $resources = $userACL.getResourcesForActionInProject($action, )$project, true)
@

