Creates a Vue component for the erased block on the job view page
What does this MR do?
Creates a Vue component for the erased block on the job view page.
It moves the following code into vue:
- if @build.erased?
.prepend-top-default.js-build-erased
.erased.alert.alert-warning
- if @build.erased_by_user?
Job has been erased by #{link_to(@build.erased_by_name, user_path(@build.erased_by))} #{time_ago_with_tooltip(@build.erased_at)}
- else
Job has been erased #{time_ago_with_tooltip(@build.erased_at)}
https://gitlab.com/gitlab-org/gitlab-ee/blob/master/app/views/projects/jobs/show.html.haml#L52
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug -
Conforms to the code review guidelines -
Conforms to the merge request performance guidelines -
Conforms to the style guides
Edited by Filipa Lacerda