Child: [f88ec7] (diff)

Download this file

nav_menu.html    41 lines (37 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
{% import 'allura:templates/jinja_master/lib.html' as lib with context %}
{% set n = c.project.neighborhood %}
{% if not c.project or (n.neighborhood_project == c.project and not n.show_title) %}
<div id="nav_menu_missing"></div>
{% else %}
{% if c.project.neighborhood.icon %}
<a href="{{c.project.neighborhood.url()}}"><img src="{{c.project.neighborhood.url()}}/icon" class="neighborhood_icon"
alt="Return to {{c.project.neighborhood.name}}" title="Return to {{c.project.neighborhood.name}}"></a>
<div class="neighborhood_title">
<h1><a href="{{c.project.neighborhood.url()}}">{{c.project.neighborhood.name}}</a></h1>
{% if c.project.neighborhood.project_list_url %}
<div class="neighborhood_title_link">
<a href="{{c.project.neighborhood.project_list_url}}">
View More Projects
</a>
</div>
{% endif %}
</div>
{% endif %}
<h1 class="project_title">
<div class="project_title_text">
{% if c.project.parent_project and not c.project.parent_project.is_nbhd_project %}
<a href="{{c.project.parent_project.url()}}">{{c.project.parent_project.name}} /</a>
{% endif %}
{% if c.project.is_nbhd_project %}
{{c.project.neighborhood.name}}
{% else %}
{{c.project.name}}
{% endif %}
</div>
{% if c.project.user_project_of %}
{{lib.gravatar(c.project.user_project_of, size=48, className='project_icon')}}
{% elif c.project.icon %}
<img src="{{c.project.url()}}/icon?{{c.project.icon._id.generation_time}}" class="project_icon" alt="Project Logo">
{% endif %}
</h1>
{% endif %}