summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorLin Jen-Shin <godfat@godfat.org>2016-07-19 17:51:45 +0800
committerLin Jen-Shin <godfat@godfat.org>2016-07-19 17:51:45 +0800
commit85ceb8b72f5a67d21bc9530fe835fdece98f3d4e (patch)
tree7d00537f13e661e23b113520e74b0e0e0dc776bf /app/views
parent0538e1e934484e76575164314fe8451374e4a4c8 (diff)
downloadgitlab-ce-85ceb8b72f5a67d21bc9530fe835fdece98f3d4e.tar.gz
Rename latest_success* to latest_successful:
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/5142#note_13164642
Diffstat (limited to 'app/views')
-rw-r--r--app/views/projects/branches/_branch.html.haml4
-rw-r--r--app/views/projects/buttons/_download.html.haml4
-rw-r--r--app/views/projects/repositories/_download_archive.html.haml4
-rw-r--r--app/views/projects/tags/_download.html.haml4
4 files changed, 8 insertions, 8 deletions
diff --git a/app/views/projects/branches/_branch.html.haml b/app/views/projects/branches/_branch.html.haml
index cbd6ab74128..8f6ddfd9044 100644
--- a/app/views/projects/branches/_branch.html.haml
+++ b/app/views/projects/branches/_branch.html.haml
@@ -27,9 +27,9 @@
= link_to namespace_project_compare_index_path(@project.namespace, @project, from: @repository.root_ref, to: branch.name), class: 'btn btn-default', method: :post, title: "Compare" do
Compare
- - pipeline = @project.latest_success_pipeline_for(branch.name).first
+ - pipeline = @project.latest_successful_pipeline_for(branch.name).first
- if pipeline
- - artifacts = pipeline.builds.latest_success_with_artifacts
+ - artifacts = pipeline.builds.latest_successful_with_artifacts
- if artifacts.any?
.dropdown.inline.artifacts-btn
%a.btn.dropdown-toggle{ 'data-toggle' => 'dropdown' }
diff --git a/app/views/projects/buttons/_download.html.haml b/app/views/projects/buttons/_download.html.haml
index f96045e09f0..047931a7fa5 100644
--- a/app/views/projects/buttons/_download.html.haml
+++ b/app/views/projects/buttons/_download.html.haml
@@ -14,9 +14,9 @@
%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.latest_success_pipeline_for(@ref).first
+ - pipeline = @project.latest_successful_pipeline_for(@ref).first
- if pipeline
- - artifacts = pipeline.builds.latest_success_with_artifacts
+ - artifacts = pipeline.builds.latest_successful_with_artifacts
- if artifacts.any?
%li.dropdown-header Artifacts
- unless pipeline.latest?
diff --git a/app/views/projects/repositories/_download_archive.html.haml b/app/views/projects/repositories/_download_archive.html.haml
index 396fb8598ae..1c03aa0a332 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_success_pipeline_for(ref).first
+ - pipeline = @project.latest_successful_pipeline_for(ref).first
- if pipeline
- - artifacts = pipeline.builds.latest_success_with_artifacts
+ - artifacts = pipeline.builds.latest_successful_with_artifacts
- if artifacts.any?
%li.dropdown-header Artifacts
- unless pipeline.latest?
diff --git a/app/views/projects/tags/_download.html.haml b/app/views/projects/tags/_download.html.haml
index 6a431bcf7b2..8e5e5cb559b 100644
--- a/app/views/projects/tags/_download.html.haml
+++ b/app/views/projects/tags/_download.html.haml
@@ -12,9 +12,9 @@
%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.latest_success_pipeline_for(ref).first
+ - pipeline = project.latest_successful_pipeline_for(ref).first
- if pipeline
- - artifacts = pipeline.builds.latest_success_with_artifacts
+ - artifacts = pipeline.builds.latest_successful_with_artifacts
- if artifacts.any?
%li.dropdown-header Artifacts
- unless pipeline.latest?