summaryrefslogtreecommitdiff
path: root/app/views/projects/repositories
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-21 18:28:33 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-21 18:28:33 +0800
commit83975914337d1dc05193a83d27be577c5631f801 (patch)
treeaeaf2450cb8a8a1c99b064d7d353e28d682c0b65 /app/views/projects/repositories
parente3ce02300bf90451b98479720d1093afe8b7eea8 (diff)
parent4211f50014faebf027fd2bc80e0cf1d3f012627c (diff)
downloadgitlab-ce-83975914337d1dc05193a83d27be577c5631f801.tar.gz
Merge branch 'artifacts-from-ref-and-build-name-api' into artifacts-from-ref-and-build-name
* artifacts-from-ref-and-build-name-api: (384 commits) Add API documentation for downloading the latest successful build Since it's too hard to use JOIN with Rails... feedback: Workaround MySQL with INNER JOIN: Just put setup directly in the test, feedback: Cleanup the use of let, feedback: Lose unneeded instance variables and variables, feedback: Add link to user profile to commit avatar (!5163) It's not longer than 80 chars Make sure there's a build Use the same logic, it should specify that it's not logged in Use 'when logging as guest' for context, feedback: Cleanup that a bit Refactor service settings view Fix a problem with processing a pipeline where stage only has manual actions Rename user2 to reporter_user Should check against `authorize_read_builds!` A CHANGELOG entry Don't show other actions of the same name Use limit parameter rather than hardcoded value Reuse those two methods ...
Diffstat (limited to 'app/views/projects/repositories')
-rw-r--r--app/views/projects/repositories/_download_archive.html.haml4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/projects/repositories/_download_archive.html.haml b/app/views/projects/repositories/_download_archive.html.haml
index e29d99371c8..183daebfc3a 100644
--- a/app/views/projects/repositories/_download_archive.html.haml
+++ b/app/views/projects/repositories/_download_archive.html.haml
@@ -25,9 +25,9 @@
= link_to archive_namespace_project_repository_path(@project.namespace, @project, ref: ref, format: 'tar'), rel: 'nofollow' do
%i.fa.fa-download
%span Download tar
- - pipeline = @project.latest_successful_pipeline_for(ref).first
+ - pipeline = @project.pipelines.latest_successful_for(ref).first
- if pipeline
- - artifacts = pipeline.builds.latest_successful_with_artifacts
+ - artifacts = pipeline.builds.latest.with_artifacts
- if artifacts.any?
%li.dropdown-header Artifacts
- unless pipeline.latest?