mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Add navigation index for resources
This commit is contained in:
parent
7288ccad07
commit
df04b5c871
@ -1,6 +1,13 @@
|
|||||||
{% extends "NelmioApiDocBundle::layout.html.twig" %}
|
{% extends "NelmioApiDocBundle::layout.html.twig" %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div id="summary">
|
||||||
|
<ul>
|
||||||
|
{% for section, sections in resources %}
|
||||||
|
<li><a href="#section-{{ section }}">{{ section }}</a></li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
{% for section, sections in resources %}
|
{% for section, sections in resources %}
|
||||||
{% if section != '_others' %}
|
{% if section != '_others' %}
|
||||||
<li class="section{{ defaultSectionsOpened? ' active':'' }}">
|
<li class="section{{ defaultSectionsOpened? ' active':'' }}">
|
||||||
@ -13,6 +20,7 @@
|
|||||||
<ul class="section-list" {% if not defaultSectionsOpened %}style="display: none"{% endif %}>
|
<ul class="section-list" {% if not defaultSectionsOpened %}style="display: none"{% endif %}>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% for resource, methods in sections %}
|
{% for resource, methods in sections %}
|
||||||
|
<a id="section-{{ section }}"></a>
|
||||||
<li class="resource">
|
<li class="resource">
|
||||||
<div class="heading">
|
<div class="heading">
|
||||||
{% if section == '_others' and resource != 'others' %}
|
{% if section == '_others' and resource != 'others' %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user