Skip to content

Commit cc97e5b

Browse files
committed
link to build log in distros list in tstk
1 parent fc806d7 commit cc97e5b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/tasks/_task_show.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
<%= d.name %>
3232
<% if task.progress.failed.include?(d.id) %>
3333
<% log_blob = task.artefacts.failed.where(distro: d.id).find { _1.filename.end_with?('.log') }&.attachment&.blob %>
34-
<%= link_to_if log_blob, 'log', rails_blob_path(log_blob) %>
34+
<%= link_to_if log_blob.present?, 'log', rails_blob_path(log_blob) %>
3535
<% end %>
3636
<br />
3737
<% end %>

0 commit comments

Comments
 (0)