mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 07:41:43 +03:00
Merge pull request #857 from zanardigit/master
Add navigation index for resources
This commit is contained in:
commit
9444172abc
@ -1,6 +1,13 @@
|
||||
{% extends "NelmioApiDocBundle::layout.html.twig" %}
|
||||
|
||||
{% 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 %}
|
||||
{% if section != '_others' %}
|
||||
<li class="section{{ defaultSectionsOpened? ' active':'' }}">
|
||||
@ -13,6 +20,7 @@
|
||||
<ul class="section-list" {% if not defaultSectionsOpened %}style="display: none"{% endif %}>
|
||||
{% endif %}
|
||||
{% for resource, methods in sections %}
|
||||
<a id="section-{{ section }}"></a>
|
||||
<li class="resource">
|
||||
<div class="heading">
|
||||
{% if section == '_others' and resource != 'others' %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user