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


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


desc
@@


1.1
log
@The global library of VelociMacros for the web site.  Currently
contains only the #errorList() macro.
@
text
@#macro(errorList $type $showSingular $list)
 #if ($list)
  #set ($size = $list.size())
  #if ($size > 0)
 <div id="errors">
  <p>
   #if ($size == 1)
#if ($showSingular)
    ${type}:
    #end
   #else
    ${type}s:
   #end 
   </p>
  #end

  #if($size > 1)<ul>#end
  #foreach ($error in $list)
   #if ($size > 1)
    <li><strong class="alert">$error</strong></li>
   #else
    <p><strong class="alert">$error</strong></p>
   #end
  #end
  #if($size > 1)</ul>#end
  #if ($size > 0) </div>
  #end
 #end
#end
@
