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
ede451c8
Commit
ede451c8
authored
Feb 02, 2016
by
Grzegorz Bizon
Committed by
Grzegorz Bizon
Feb 19, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show information indicating that build has been erased
parent
2c7f36f4
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
4 deletions
+14
-4
app/views/projects/builds/show.html.haml
app/views/projects/builds/show.html.haml
+9
-4
features/project/builds/summary.feature
features/project/builds/summary.feature
+1
-0
features/steps/project/builds/summary.rb
features/steps/project/builds/summary.rb
+4
-0
No files found.
app/views/projects/builds/show.html.haml
View file @
ede451c8
...
@@ -76,10 +76,15 @@
...
@@ -76,10 +76,15 @@
=
link_to
'#down-build-trace'
,
class:
'btn'
do
=
link_to
'#down-build-trace'
,
class:
'btn'
do
%i
.fa.fa-angle-down
%i
.fa.fa-angle-down
-
unless
@build
.
erased?
%pre
.trace
#build-trace
%pre
.trace
#build-trace
%code
.bash
%code
.bash
=
preserve
do
=
preserve
do
=
raw
@build
.
trace_html
=
raw
@build
.
trace_html
-
else
.erased.alert.alert-warning
Build has been erased by
#{
@build
.
erased_by
.
username
}
#{
time_ago_with_tooltip
(
@build
.
created_at
)
}
%div
#down-build-trace
%div
#down-build-trace
.col-md-3
.col-md-3
...
...
features/project/builds/summary.feature
View file @
ede451c8
...
@@ -20,3 +20,4 @@ Feature: Project Builds Summary
...
@@ -20,3 +20,4 @@ Feature: Project Builds Summary
And
I click erase build button
And
I click erase build button
Then
recent build has been erased
Then
recent build has been erased
And
recent build summary does not have artifacts widget
And
recent build summary does not have artifacts widget
And
recent build summary contains information saying that build has been erased
features/steps/project/builds/summary.rb
View file @
ede451c8
...
@@ -24,4 +24,8 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
...
@@ -24,4 +24,8 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps
step
'recent build summary does not have artifacts widget'
do
step
'recent build summary does not have artifacts widget'
do
expect
(
page
).
to
have_no_css
(
'.artifacts'
)
expect
(
page
).
to
have_no_css
(
'.artifacts'
)
end
end
step
'recent build summary contains information saying that build has been erased'
do
expect
(
page
).
to
have_css
(
'.erased'
)
end
end
end
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