Parent: [79b141] (diff)

Download this file

neighborhood_lib.html    41 lines (38 with data), 1.7 kB

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
<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" alt=""/>
<img py:if="not neighborhood.icon" src="${g.forge_static('images/project_default.png')}" class="project_icon" alt=""/>
</div>
<div class="column grid_9">
<h1>
<a href="${neighborhood.url()}">$neighborhood.name</a><br/>
</h1>
</div>
<div class="column grid_2">&nbsp;</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>