<html xmlns:py="http://genshi.edgewall.org/"
xmlns:xi="http://www.w3.org/2001/XInclude"
py:strip="">
<py:def function="nav_menu()">
<div id="nav_menu_missing" py:if="not neighborhood"/>
<py:if test="neighborhood">
<div class="column grid_1">
<img py:if="neighborhood.icon" src="${neighborhood.url()}/icon" class="project_icon"/>
<img py:if="not neighborhood.icon" src="${g.forge_static('images/project_default.png')}" class="project_icon"/>
</div>
<div class="column grid_9">
<h1>
<a href="${neighborhood.url()}">$neighborhood.name</a><br/>
</h1>
</div>
<div class="column grid_2"> </div>
</py:if>
</py:def>
<py:def function="top_nav()">
<div class="row project" py:if="neighborhood">
<div class="column grid_9">
<ul class="ui-tab">
<li class="${request.url.rfind(neighborhood.url(),-len(neighborhood.url())) != -1 and 'active' or ''}">
<a href="${neighborhood.url()}" class="ico-l"><b class="ui-icon ui-icon-home"></b> <span>Home</span></a>
</li>
<li py:if="h.has_access(neighborhood, 'admin')()"
class="${neighborhood.url()+'_admin' in request.url and 'active' or ''}">
<a href="${neighborhood.url()}_admin/" class="ico-l"><b class="ui-icon ui-icon-gear"></b> <span>Admin</span></a>
</li>
<li py:if="has_access(neighborhood, 'admin')()"
class="${neighborhood.url()+'_moderate' in request.url and 'active' or ''}">
<a href="${neighborhood.url()}_moderate/" class="ico-l"><b class="ui-icon ui-icon-gear"></b> <span>Moderate</span></a>
</li>
</ul>
</div>
</div>
</py:def>
</html>