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


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

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

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

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

1.4
date	2001.07.31.01.18.38;	author tfahrner;	state Exp;
branches;
next	1.3;

1.3
date	2001.07.31.00.01.54;	author tfahrner;	state Exp;
branches;
next	1.2;

1.2
date	2001.07.30.21.59.21;	author tfahrner;	state Exp;
branches;
next	1.1;

1.1
date	2001.07.05.22.21.40;	author leonardr;	state Exp;
branches;
next	;


desc
@@


1.8
log
@removed redundant task links
@
text
@<div id="licenselist" class="app">
 #set ($canEdit=false)
 #set ($licenses=$currentProject.getAvailableLicenses())
 #foreach($license in $licenses)
  #if ($acl.hasPermission("Licenses - Administer", $license.getProject()))
   #set ($canEdit = true)
  #end
 #end

 <table border="1" cellspacing="2" cellpadding="3" width="100%"> 
  <tr>
   <th>License</th>
   #if ($canEdit)
    <th></th>
   #end
  </tr>
 #set ($rowClass="a")
 #foreach( $license in $licenses )
  #set ($licenseProject = $license.getProject())
  <tr class="$rowClass">
   <td nowrap="nowrap">
    #if ($license.describedByURL())
     #set($detailsUrl=$license.getDescription())
    #else
     #set($detailsUrl=$currentProject.getProjectPageURL("LicenseDetails?licenseID=$license.getID()"))
    #end
    <a href="$detailsUrl">$license.getName()</a>
   </td> 
   #if ($canEdit)
    <td>
     #if ($acl.hasPermission("Licenses - Administer", $licenseProject))
      <a href="$currentProject.getProjectPageURL("LicenseEdit?licenseID=$license.getID()")">Edit</a>
      #if ($license.isDeletable())
       <a href="$currentProject.getProjectPageURL("LicenseDelete?licenseID=$license.getID()")">Delete</a>
      #end
     #end
    </td>
   #end
  </tr> 
  #if ($rowClass.equals("a"))
    #set ($rowClass="b")
  #else 
    #set ($rowClass="a")
  #end
#end
 </table>
</div>
@


1.7
log
@ui revision
@
text
@a1 6

 <h3>Licenses</h3>      
 #if($acl.hasPermission("Licenses - Administer", $currentDomain))
  <p class="affordance"><a href="LicenseAdd">Add New License</a></p>
 #end

@


1.6
log
@first wave of ui revisions. expect minor breakage. working on it.
@
text
@a0 2
#parse("Admin_Nav.vm")

@


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


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


1.3
log
@pulled admin options, added headlines
@
text
@d7 4
@


1.2
log
@html usage revision to synch with scarab
@
text
@d4 3
@


1.1
log
@Licenses are now contained in a database-managed table rather than in a custom Java class (yay!)
@
text
@d3 1
a3 1
<div id="licenselist">
d17 1
a17 1
 <table border="0" cellspacing="0" cellpadding="2" width="100%"> 
@

