## $Header: /cvs/sakai2/legacy/tools/src/webapp/vm/admin/chef_aliases_list.vm,v 1.2 2005/05/19 19:53:01 gsilver.umich.edu Exp $
<div class="portletBody">
	#if($menu)
		#toolbar($menu)
	#end
	<h3>
		$tlang.getString("alias.aliases")
	</h3>
	#if ($alertMessage)<div class="alertMessage">$tlang.getString("alias.list.alert") $validator.escapeHtml($alertMessage)</div>#end
	<div class="instruction">
		$tlang.getString("alias.list.defined")
	</div>
	#if ($aliases.size() > 0)
		<table class="listHier lines" cellspacing="0" summary ="$tlang.getString("alias.list.summary")">
			<tr>
				<th id="Id">$tlang.getString("alias.list.alias")</th>
				<th id="Target">$tlang.getString("alias.list.target")</th>
			</tr>
				#foreach ($alias in $aliases)
					<tr>
						<td headers="Id">
							<h4>
								#if ($service.allowEdit($alias.Id))
									<a href="#toolLinkParam("$action" "doEdit" "id=$validator.escapeUrl($alias.Id)")">
										$validator.escapeHtml($alias.Id)
									</a>
								#else
									$validator.escapeHtml($alias.Id)
								#end
							</h4>	
						</td>
						<td headers="Target">$validator.escapeHtml($alias.Target)</td>
					</tr>
				#end
		</table>
	#else
		<div class="instruction">
			$tlang.getString("alias.list.nodefined")
		</div>
	#end
</div>

