diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2015-12-28 11:43:15 +0100 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-01-14 12:48:14 +0100 |
commit | 8eeed761a9c25ea8ccfc347fbd3f5894b5957d9e (patch) | |
tree | b5a07923abb806e7b24ce5cacba905288023bb1a /app/views/admin | |
parent | 9e0e9342a47022a9caaa4a5596ec3ddb91fddc58 (diff) | |
download | gitlab-ce-8eeed761a9c25ea8ccfc347fbd3f5894b5957d9e.tar.gz |
Update specs for CI Build, add `artifacts?` method
`artifacts?` method checks if artifacts archive is available.
Diffstat (limited to 'app/views/admin')
-rw-r--r-- | app/views/admin/builds/_build.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/admin/builds/_build.html.haml b/app/views/admin/builds/_build.html.haml index 7cd98c0f540..26cdb162b76 100644 --- a/app/views/admin/builds/_build.html.haml +++ b/app/views/admin/builds/_build.html.haml @@ -60,7 +60,7 @@ %td .pull-right - - if current_user && can?(current_user, :download_build_artifacts, project) && build.artifacts_file.exist? + - if current_user && can?(current_user, :download_build_artifacts, project) && build.artifacts? = link_to build.artifacts_download_url, title: 'Download artifacts' do %i.fa.fa-download - if current_user && can?(current_user, :manage_builds, build.project) |