Wrong empty state for cancelled build, hides existing logs!

Description

If a job log has been canceled, we cannot see the job output log anymore. Instead, we see the empty state for the jobs that are not started yet.

Example: https://gitlab.com/gitlab-org/gitlab-ee/-/jobs/50082597

image

Solution

When a job is canceled, show the output log as usual if it is available, otherwise show the new empty state for canceled jobs (see below).

Illustration is available at https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/dist/illustrations/canceled-job_empty.svg.

cancelled-build--without-job-log

Edited by Hazel Yang