You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

79 lines
2.6 KiB

{%- set elements = [
{'path':'balises.html', 'nom': 'Balises', 'elements': project.indexes.spip.balises},
{'path':'filtres.html', 'nom': 'Filtres', 'elements': project.indexes.spip.filtres},
{'path':'criteres.html', 'nom': 'Critères', 'elements': project.indexes.spip.criteres},
{'path':'boucles.html', 'nom': 'Boucles', 'elements': project.indexes.spip.boucles},
{'path':'pipelines/index.html', 'nom': 'Pipelines', 'elements': project.indexes.spip.pipelines},
{'path':'apis/index.html', 'nom': 'APIs', 'elements': project.indexes.apis},
{'path':'constantes.html', 'nom': 'Constantes', 'elements': project.indexes.constants}
] %}
{%- set classes = {
'path':'classes.html',
'nom':'Classes',
'elements': {
'classes': project.indexes.classes,
'interfaces': project.indexes.interfaces,
'traits': project.indexes.traits
},
'afficher': project.indexes.classes.count or project.indexes.interfaces.count or project.indexes.traits.count
}
%}
<div class="navbar navbar-static-top">
<div class="navbar-inner">
<div class="container">
<a data-target=".navbar-responsive-collapse" data-toggle="collapse" class="btn btn-navbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class='babarre'>
<a href="{{ path(project) }}" class="brand">Autodoc</a>
<div class="nav-collapse collapse navbar-responsive-collapse">
<ul class="nav nav-tabs">
{%- for e in elements %}
{%- if e.elements.count %}
<li>{{ '' -}}
<a href="{{ path(e.path) }}" title="{{ e.elements.count ~ ' ' ~ e.nom|lower }}">
{{- e.nom -}}
</a>{{ '' -}}
</li>
{%- endif %}
{%- endfor %}
{%- if classes.afficher %}
<li>
{%- set virgule = false -%}
<a href="{{ path( classes.path ) }}" title="
{%- for type,collection in classes.elements if collection.count -%}
{%- if virgule %}, {% endif -%}
{%- set virgule = true -%}
{{ collection.count ~ ' ' ~ type }}
{%- endfor -%}
">
{{- classes.nom -}}
</a>{{ '' -}}
</li>
{%- endif %}
<li><a href="{{ path('statistiques.html') }}">Statistiques</a></li>
{#- <!-- lien temporaire -->
<li><a href="{{ path('debug.html') }}">Debug</a></li>
#}
</ul>
<form action="{{ path('recherche.html') }}" class="navbar-search pull-right">
<input type="text" name="q" placeholder="Recherche" class="search-query span2">
</form>
</div><!-- /.nav-collapse -->
</div><!-- /.babarre -->
</div>
</div><!-- /navbar-inner -->
</div>