Skip to content

Commit 68cb7af

Browse files
committed
add comment in template
1 parent 5305458 commit 68cb7af

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

readthedocs/templates/search/elastic_search.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,8 @@ <h3>
187187
{% if inner_hit.type == 'domains' %}
188188
<p>
189189
<a href="{% doc_url result.project|get_project result.version inner_hit.source.doc_name %}#{{ inner_hit.source.anchor }}">
190+
191+
{% comment %} ">= 2" because some display_name are just "-" {% endcomment %}
190192
{% if inner_hit.source.display_name|length >= 2 %}
191193
({{ inner_hit.source.role_name }}) {{ inner_hit.source.display_name}}
192194
{% else %}

0 commit comments

Comments
 (0)