summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-23 19:33:18 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-01-26 08:34:48 +0100
commit8d397862cd90f39cc70dd775d613635a542ab72c (patch)
treea76924ba5071a1b5fa37b51866e46bc5d28bd639
parenteb7f669073b2b95a1956de5e22f97dc8f83711e8 (diff)
downloadgitlab-ce-8d397862cd90f39cc70dd775d613635a542ab72c.tar.gz
Use generic method to checks if artifacts are available
-rw-r--r--app/views/projects/commit_statuses/_commit_status.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/commit_statuses/_commit_status.html.haml b/app/views/projects/commit_statuses/_commit_status.html.haml
index 1736dccaf3c..2e3c956ddc4 100644
--- a/app/views/projects/commit_statuses/_commit_status.html.haml
+++ b/app/views/projects/commit_statuses/_commit_status.html.haml
@@ -66,7 +66,7 @@
%td
.pull-right
- - if current_user && can?(current_user, :read_build_artifacts, commit_status.project) && commit_status.artifacts?
+ - if current_user && can?(current_user, :read_build_artifacts, commit_status.project) && commit_status.artifacts_download_url
= link_to commit_status.artifacts_download_url, title: 'Download artifacts' do
%i.fa.fa-download
- if current_user && can?(current_user, :manage_builds, commit_status.project)