BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
dcb436f5
Commit
dcb436f5
authored
Jul 18, 2016
by
Lin Jen-Shin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use Project#latest_success_builds_for
parent
3be2c3f5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
_branch.html.haml
app/views/projects/branches/_branch.html.haml
+1
-1
_download.html.haml
app/views/projects/buttons/_download.html.haml
+1
-1
_download.html.haml
app/views/projects/tags/_download.html.haml
+1
-1
No files found.
app/views/projects/branches/_branch.html.haml
View file @
dcb436f5
...
...
@@ -27,7 +27,7 @@
=
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
-
artifacts
=
@project
.
builds_for
(
@repository
.
root_ref
).
latest
.
with_artifacts
-
artifacts
=
@project
.
latest_success_builds_for
(
@repository
.
root_ref
)
-
if
artifacts
.
any?
.dropdown.inline.artifacts-btn
%a
.btn.dropdown-toggle
{
'data-toggle'
=>
'dropdown'
}
...
...
app/views/projects/buttons/_download.html.haml
View file @
dcb436f5
...
...
@@ -14,7 +14,7 @@
%li
=
link_to
archive_namespace_project_repository_path
(
@project
.
namespace
,
@project
,
ref:
@ref
,
format:
'tar.gz'
),
rel:
'nofollow'
do
%span
Download tar.gz
-
artifacts
=
@project
.
builds_for
(
@ref
).
latest
.
with_artifacts
-
artifacts
=
@project
.
latest_success_builds_for
(
@ref
)
-
if
artifacts
.
any?
%li
.dropdown-header
Artifacts
-
artifacts
.
each
do
|
job
|
...
...
app/views/projects/tags/_download.html.haml
View file @
dcb436f5
...
...
@@ -12,7 +12,7 @@
%li
=
link_to
archive_namespace_project_repository_path
(
project
.
namespace
,
project
,
ref:
ref
,
format:
'tar.gz'
),
rel:
'nofollow'
do
%span
Download tar.gz
-
artifacts
=
project
.
builds_for
(
ref
).
latest
.
with_artifacts
-
artifacts
=
project
.
latest_success_builds_for
(
ref
)
-
if
artifacts
.
any?
%li
.dropdown-header
Artifacts
-
artifacts
.
each
do
|
job
|
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment