summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorKamil Trzciński <ayufan@ayufan.eu>2018-01-06 14:40:45 +0000
committerKamil Trzciński <ayufan@ayufan.eu>2018-01-06 14:40:45 +0000
commit54bacb1860036ffcd722f7df033d7def6b1a8756 (patch)
tree15364719c3a093a30c37b13d8f43fc0d31f1ae85 /app/serializers
parenta7a7f8b15968418bf52d91341588f1c573f412c3 (diff)
parent01d427634cbfee41042ab1ef91c88667ffe713b4 (diff)
downloadgitlab-ce-54bacb1860036ffcd722f7df033d7def6b1a8756.tar.gz
Merge branch '22643-manual-job-page' into 'master'
Resolve "Improve non-triggered manual action job detail page" Closes #22643 and #37843 See merge request gitlab-org/gitlab-ce!15991
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/job_entity.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/serializers/job_entity.rb b/app/serializers/job_entity.rb
index 72e56a2c77f..523b522d449 100644
--- a/app/serializers/job_entity.rb
+++ b/app/serializers/job_entity.rb
@@ -4,6 +4,8 @@ class JobEntity < Grape::Entity
expose :id
expose :name
+ expose :started?, as: :started
+
expose :build_path do |build|
build.target_url || path_to(:namespace_project_job, build)
end