diff options
author | Lin Jen-Shin <godfat@godfat.org> | 2016-08-17 17:06:31 +0800 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2016-08-17 17:06:31 +0800 |
commit | ee33b3e6e84bb566e84062e70d45c6d84ace4ee7 (patch) | |
tree | 1bb221eb39dcf82de003099a5571c3f0d86b8360 /app/views/projects/tags | |
parent | 75df5f6c73670def1912150c6f3390ffdfadb17a (diff) | |
download | gitlab-ce-ee33b3e6e84bb566e84062e70d45c6d84ace4ee7.tar.gz |
Use partials for downloading artifacts button
Diffstat (limited to 'app/views/projects/tags')
-rw-r--r-- | app/views/projects/tags/_download.html.haml | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/app/views/projects/tags/_download.html.haml b/app/views/projects/tags/_download.html.haml index 316d03dd12a..6985eb74ca7 100644 --- a/app/views/projects/tags/_download.html.haml +++ b/app/views/projects/tags/_download.html.haml @@ -12,17 +12,4 @@ %li = link_to archive_namespace_project_repository_path(project.namespace, project, ref: ref, format: 'tar.gz'), rel: 'nofollow' do %span Download tar.gz - - pipeline = project.pipelines.latest_successful_for(ref) - - if pipeline - - artifacts = pipeline.builds.latest.with_artifacts - - if artifacts.any? - %li.dropdown-header Artifacts - - unless pipeline.latest? - - latest_pipeline = project.pipeline_for(ref) - %li - .unclickable= ci_status_for_statuseable(latest_pipeline) - %li.dropdown-header Previous Artifacts - - artifacts.each do |job| - %li - = link_to latest_succeeded_namespace_project_artifacts_path(project.namespace, project, ref, 'download', job: job.name), rel: 'nofollow' do - %span Download '#{job.name}' + = render 'projects/buttons/artifacts', project: project, ref: ref |