We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d8afa67 commit fd9ab34Copy full SHA for fd9ab34
src/librustdoc/html/templates/sidebar.html
@@ -18,11 +18,7 @@ <h2 class="location"> {# #}
18
<h3><a href="#{{block.heading.href|safe}}">{{block.heading.name}}</a></h3>
19
{% endif %}
20
{% if !block.links.is_empty() %}
21
- <ul {%+ if block.class.is_empty() %}
22
- class="block"
23
- {% else %}
24
- class="block {{+ block.class}}"
25
- {% endif %}>
+ <ul class="block{% if !block.class.is_empty() +%} {{+block.class}}{% endif %}">
26
{% for link in block.links %}
27
<li><a href="#{{link.href|safe}}">{{link.name}}</a></li>
28
{% endfor %}
0 commit comments