Skip to content

Commit 4481a73

Browse files
nikromenFrostyX
authored andcommitted
frontend: fix bug in reporting failed SRPMs to log-detective
1 parent 6f58eb2 commit 4481a73

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

frontend/coprs_frontend/coprs/templates/coprs/detail/_builds_forms.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -307,11 +307,13 @@ <h3> New Build Options </h3>
307307
<span class="caret"></span>
308308
</button>
309309
<ul class="dropdown-menu">
310-
{% for chroot in chroots %}
311-
<li><a href="{{ url |format(build.id, chroot.name) }}">Report {{ chroot.name }}</a></li>
310+
{% if build.source_state == "failed" %}
311+
<li><a href="{{ url |format(build.id, 'srpm-builds') }}">Report SRPM build</a></li>
312312
{% else %}
313-
<li><a href="{{ url |format(build.id, 'srpm-builds') }}">Report SRPM build</a></li>
314-
{% endfor %}
313+
{% for chroot in chroots %}
314+
<li><a href="{{ url |format(build.id, chroot.name) }}">Report {{ chroot.name }}</a></li>
315+
{% endfor %}
316+
{% endif %}
315317
</ul>
316318
</div>
317319
{% endmacro %}

0 commit comments

Comments
 (0)