Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
d133175b
Commit
d133175b
authored
Jun 01, 2016
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
User internal pipeline to access project in views
parent
02cddaea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
app/views/projects/commit/_ci_commit.html.haml
app/views/projects/commit/_ci_commit.html.haml
+8
-8
No files found.
app/views/projects/commit/_ci_commit.html.haml
View file @
d133175b
.row-content-block.build-content.middle-block
.pull-right
-
if
can?
(
current_user
,
:update_pipeline
,
@
project
)
-
if
can?
(
current_user
,
:update_pipeline
,
ci_commit
.
project
)
-
if
ci_commit
.
builds
.
latest
.
failed
.
any?
(
&
:retryable?
)
=
link_to
"Retry failed"
,
retry_namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
ci_commit
.
id
),
class:
'btn btn-grouped btn-primary'
,
method: :post
=
link_to
"Retry failed"
,
retry_namespace_project_pipeline_path
(
ci_commit
.
project
.
namespace
,
ci_commit
.
project
,
ci_commit
.
id
),
class:
'btn btn-grouped btn-primary'
,
method: :post
-
if
ci_commit
.
builds
.
running_or_pending
.
any?
=
link_to
"Cancel running"
,
cancel_namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
ci_commit
.
id
),
data:
{
confirm:
'Are you sure?'
},
class:
'btn btn-grouped btn-danger'
,
method: :post
=
link_to
"Cancel running"
,
cancel_namespace_project_pipeline_path
(
ci_commit
.
project
.
namespace
,
ci_commit
.
project
,
ci_commit
.
id
),
data:
{
confirm:
'Are you sure?'
},
class:
'btn btn-grouped btn-danger'
,
method: :post
.oneline.clearfix
-
if
defined?
(
pipeline_details
)
&&
pipeline_details
Pipeline
=
link_to
"#
#{
ci_commit
.
id
}
"
,
namespace_project_pipeline_path
(
@project
.
namespace
,
@
project
,
ci_commit
.
id
),
class:
"monospace"
=
link_to
"#
#{
ci_commit
.
id
}
"
,
namespace_project_pipeline_path
(
ci_commit
.
project
.
namespace
,
ci_commit
.
project
,
ci_commit
.
id
),
class:
"monospace"
with
=
pluralize
ci_commit
.
statuses
.
count
(
:id
),
"build"
-
if
ci_commit
.
ref
for
=
link_to
ci_commit
.
ref
,
namespace_project_commits_path
(
@project
.
namespace
,
@
project
,
ci_commit
.
ref
),
class:
"monospace"
=
link_to
ci_commit
.
ref
,
namespace_project_commits_path
(
ci_commit
.
project
.
namespace
,
ci_commit
.
project
,
ci_commit
.
ref
),
class:
"monospace"
-
if
defined?
(
link_to_commit
)
&&
link_to_commit
for commit
=
link_to
ci_commit
.
short_sha
,
namespace_project_commit_path
(
@project
.
namespace
,
@
project
,
ci_commit
.
sha
),
class:
"monospace"
=
link_to
ci_commit
.
short_sha
,
namespace_project_commit_path
(
ci_commit
.
project
.
namespace
,
ci_commit
.
project
,
ci_commit
.
sha
),
class:
"monospace"
-
if
ci_commit
.
duration
in
=
time_interval_in_words
ci_commit
.
duration
...
...
@@ -31,7 +31,7 @@
%li
=
error
You can also test your .gitlab-ci.yml in the
#{
link_to
"Lint"
,
ci_lint_path
}
-
if
@
project
.
builds_enabled?
&&
!
ci_commit
.
ci_yaml_file
-
if
ci_commit
.
project
.
builds_enabled?
&&
!
ci_commit
.
ci_yaml_file
.bs-callout.bs-callout-warning
\.gitlab-ci.yml not found in this commit
...
...
@@ -45,7 +45,7 @@
%th
Tags
%th
Duration
%th
Finished at
-
if
@
project
.
build_coverage_enabled?
-
if
ci_commit
.
project
.
build_coverage_enabled?
%th
Coverage
%th
-
ci_commit
.
statuses
.
stages
.
each
do
|
stage
|
...
...
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