<div class="greyLinks">
#set ($urlForThisPage = $req.getRequestURI())

#if ($urlForThisPage.indexOf("recentlyupdated.action") != -1)
    <span style="padding: 5px; background-color:f0f0f0;"><strong>Recently Updated</strong></span> |
#else
    <a href="$req.contextPath/pages/recentlyupdated.action?key=$generalUtil.urlEncode($key)">Recently Updated</a> |
#end

#if ($urlForThisPage.indexOf("listpages-alphaview.action") != -1)
    <span style="padding: 5px; background-color:f0f0f0;"><strong>Alphabetical View</strong></span> |
#else
    <a href="$req.contextPath/pages/listpages-alphaview.action?key=$generalUtil.urlEncode($key)">Alphabetical View</a> |
#end

#if ($urlForThisPage.indexOf("listpages-dirview.action") != -1)
    <span style="padding: 5px; background-color:f0f0f0;"><strong>Tree View</strong></span>
#else
    <a href="$req.contextPath/pages/listpages-dirview.action?key=$generalUtil.urlEncode($key)">Tree View</a>
#end
</div>
