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