| 1 | {% if !title.is_empty() %} |
| 2 | <h2 class="location"> {# #} |
| 3 | <a href="#">{{title_prefix}}{{title}}</a> {# #} |
| 4 | </h2> |
| 5 | {% endif %} |
| 6 | <div class="sidebar-elems"> |
| 7 | {% if is_crate %} |
| 8 | <ul class="block"> {# #} |
| 9 | <li><a id="all-types" href="all.html">All Items</a></li> {# #} |
| 10 | </ul> |
| 11 | {% endif %} |
| 12 | |
| 13 | {% if self.should_render_blocks() %} |
| 14 | <section> |
| 15 | {% for block in blocks %} |
| 16 | {% if block.should_render() %} |
| 17 | {% if !block.heading.name.is_empty() %} |
| 18 | <h3><a href="#{{block.heading.href|safe}}">{{block.heading.name}}</a></h3> |
| 19 | {% endif %} |
| 20 | {% if !block.links.is_empty() %} |
| 21 | <ul class="block{% if !block.class.is_empty() +%} {{+block.class}}{% endif %}"> |
| 22 | {% for link in block.links %} |
| 23 | <li><a href="#{{link.href|safe}}">{{link.name}}</a></li> |
| 24 | {% endfor %} |
| 25 | </ul> |
| 26 | {% endif %} |
| 27 | {% endif %} |
| 28 | {% endfor %} |
| 29 | </section> |
| 30 | {% endif %} |
| 31 | {% if !path.is_empty() %} |
| 32 | <h2><a href="{% if is_mod %}../{% endif %}index.html">In {{+ path}}</a></h2> |
| 33 | {% endif %} |
| 34 | </div> |