Use generic method to checks if artifacts are available

This commit is contained in:
Grzegorz Bizon 2016-01-23 19:33:18 +01:00
parent eb7f669073
commit 8d397862cd
1 changed files with 1 additions and 1 deletions

View File

@ -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)