## first render bread-crumb category navigation #set ($lastIndex = $history.size() - 1) #set ($ri = 0)
#if($addStructureForm) $r.render("addStructureForm") #end ## render catalog link edit form or the catalog link description #if($enableEditCatalogLink)
$r.translate("tools.edit.catalog.category") $r.render("editCatalogLink")
#else ## render category edit form or the category description #if($enableEditCategory)
$r.translate("tools.edit.catalog.category") $r.render("editCategory")
#else
$r.translate("category") $currentCatalogEntry.getName()
#if ($currentCatalogEntry.getDescription())
$currentCatalogEntry.getDescription()
#end #end ## render some administrative forms #if($enableGroupMngmnt)

$r.translate("tools.edit.catalog.category.ownergroup") $r.render("close") $r.render("groupMngmnt")
#end #if($enableRequestForm)
$r.translate("contact.caretaker") $r.render("requestForm")
#end #if($enableAddSubcategory)
$r.translate("tools.add.catalog.category") $r.render("addSubcategory")

#end ## calculate some temporary variables #set($hasChildren = false) #set($hasSubcats = false) #foreach($child in $children) #if ($child.getType()==$leaf) #if($RepoAccessVal.intValue() <= $child.getRepositoryEntry().getAccess()) #set($hasChildren = true) #end #else #set($hasSubcats = true) #end #end ## render subcatecories of current category #if ($hasSubcats)
#set ($ri = 0) #foreach($child in $children) #if ($child.getType()==$node) $child.getName() #end #set ($ri = $ri +1) #end
#end #if ($enableRepositorySelection || $enableLinkEdit)
#if($enableRepositorySelection)
$r.translate("tools.add.catalog.link") $r.render("repositorySelection")
#end #if($enableLinkEdit)
$r.translate("tools.add.catalog.link") $r.render("editLinkEntryFrom")
#end
#end ## the hint that the list entries may not be complete due to guest access restrictions #if ($isGuest) ${r.translate("filtered.first")}${r.render("cat.login")}${r.translate("filtered.second")} #end ## render list of children items: repository entries in this category #set ($ri = 0) #set ($i = 0) #if ($hasChildren)
$r.translate("title.leaves")

#foreach($child in $children) #if ($child.getType()==$leaf) #if($RepoAccessVal.intValue() <= $child.getRepositoryEntry().getAccess()) #if($i%2==0)
#else
#end ## | $child.getName() $!child.getDescription() | $r.link("leaf$ri","tocontent") #if ($canRemoveAllLinks || $hasOwnedLinks) #if($canRemoveAllLinks || $ownedLinks.contains($child)) $r.link("remove.leaf$ri","delete") $r.link("edit.leaf$ri","edit") #end #end
#set ($i = $i +1) #end #end #set ($ri = $ri +1) #end

#else #if (!$hasSubcats) $r.translate("no.leaves") #end #end #end