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


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

1.8
date	2001.08.03.05.45.08;	author tfahrner;	state Exp;
branches;
next	1.7;

1.7
date	2001.07.31.01.18.40;	author tfahrner;	state Exp;
branches;
next	1.6;

1.6
date	2001.07.31.00.01.57;	author tfahrner;	state Exp;
branches;
next	1.5;

1.5
date	2001.07.30.21.59.24;	author tfahrner;	state Exp;
branches;
next	1.4;

1.4
date	2001.07.27.22.36.07;	author leonardr;	state Exp;
branches;
next	1.3;

1.3
date	2001.06.17.03.39.03;	author jefflove;	state Exp;
branches;
next	1.2;

1.2
date	2001.06.13.21.22.23;	author beril;	state Exp;
branches;
next	1.1;

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


desc
@@


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

 <h3>Permissions for Role: $currentRole.getFullName()</h3>

 <table border="1" cellspacing="2" cellpadding="3" width="100%">
  <tr>
   <th nowrap="nowrap">Action</th>
   <th nowrap="nowrap">Resource(s)</th>
  </tr>
 #set ($rowClass="a")
 #set( $oldName = "" )
 #foreach( $permission in $currentRole.getPermissions() )
  <tr class="$rowClass">
   <td>
 #set( $action = $permission.getAction() )
 #set( $resource = $permission.getResource() )
 #set( $newName = $permission.getAction().getName() )
 #set( $go = true )
 #if( !$newName.equals($oldName) )
  $newName
  #set( $oldName = $newName )
 #end
   </td>
   <td>${resource.getDescription()}: ${resource.getPattern()}</td>
  </tr>
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
 #end
 </table>

</div>
@


1.8
log
@getting rid of "tasks" nav; backing out of earlier ill-considered commit
@
text
@a1 3
<h2>
 #parse( "Nomen.vm" )
</h2>
@


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


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


1.5
log
@html usage revision to synch with scarab
@
text
@d2 3
@


1.4
log
@Made Role.getName() get unqualified role name; this was neccessary because BaseRolePeer calls Role.getName(), which was causing roles to be created with their fully-qualified names being stored where their unqualified names should be. Templates which used to use Role.getName() now need to use Role.getFullName()
@
text
@d1 1
a1 1
<div id="roleview">
d4 1
a4 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%">
@


1.3
log
@html usage revisions
@
text
@d2 1
a2 1
 <h3>Permissions for Role: $currentRole.getName()</h3>
@


1.2
log
@xhtml cleanup
@
text
@d2 1
a2 1
 <h4>Permissions for Role: $currentRole.getName()</h4>
@


1.1
log
@Adding Velocity templates.
@
text
@d1 2
a2 5
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">  
  <TR>  
    <TD class="ProjectNameHeader"><b>Permissions for Role: $currentRole.getName()</b></TD> 
  </TR>  
</TABLE> 
d4 10
a13 10
<TABLE BORDER="0" CELLSPACING="1" CELLPADDING="3" BORDER="0" width="100%">
  <TR>
    <TD class="StatText"><b>Action</b></TD>
    <TD WIDTH="10" bgcolor="#efefef"><SPACER TYPE="block" WIDTH="10"></TD>
    <TD class="StatText"><b>Resource(s)</b></TD>
  </TR>
#set( $oldName = "" )
#foreach( $permission in $currentRole.getPermissions() )
  <TR>
    <TD class="PlainText">
d22 12
a33 8
   </TD>
   <td></td>
   <TD class="PlainText">
 ${resource.getDescription()}: ${resource.getPattern()}
   </TD>
 </TR>
#end
</TABLE>
@

