Skip to content

Commit b20682f

Browse files
committed
Lint
1 parent 8cf2ab1 commit b20682f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

readthedocsext/theme/templates/builds/build_detail.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -191,19 +191,19 @@ <h3>{% trans "Build Errors" %}</h3>
191191
{% if build.notifications.exists %}
192192
{# Show error notifications as "build-error" #}
193193
{% for notification in build.notifications.all %}
194-
{% if notification.get_message.type == "error" %}
195-
<div class="ui attached inverted red segment">
196-
<i class="fa-solid fa-exclamation circular icon"></i>
197-
<span>{{ notification.get_message.get_rendered_body|safe }}</span>
198-
<span>{% trans "For more information on this error, see our documentation." %}</span>
199-
</div>
194+
{% if notification.get_message.type == "error" %}
195+
<div class="ui attached inverted red segment">
196+
<i class="fa-solid fa-exclamation circular icon"></i>
197+
<span>{{ notification.get_message.get_rendered_body|safe }}</span>
198+
<span>{% trans "For more information on this error, see our documentation." %}</span>
199+
</div>
200200
{% endif %}
201201
{% endfor %}
202202
{% else %}
203-
<div class="ui attached inverted red segment" data-bind="visible: error" style="display: none;">
204-
<span data-bind="text: error"></span>
205-
<span>{% trans "For more information on this error, see our documentation." %}</span>
206-
</div>
203+
<div class="ui attached inverted red segment" data-bind="visible: error" style="display: none;">
204+
<span data-bind="text: error"></span>
205+
<span>{% trans "For more information on this error, see our documentation." %}</span>
206+
</div>
207207
{% endif %}
208208

209209
<div class="ui inverted bottom attached segment transition slide">

0 commit comments

Comments
 (0)