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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
a31053af
Commit
a31053af
authored
Oct 26, 2016
by
Annabel Dunstone Gray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Align header items; put retry button back in sidebar on mobile
parent
b7f66d1a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
17 deletions
+44
-17
app/assets/stylesheets/pages/builds.scss
app/assets/stylesheets/pages/builds.scss
+27
-3
app/views/projects/builds/_header.html.haml
app/views/projects/builds/_header.html.haml
+15
-14
app/views/projects/builds/_sidebar.html.haml
app/views/projects/builds/_sidebar.html.haml
+2
-0
No files found.
app/assets/stylesheets/pages/builds.scss
View file @
a31053af
...
@@ -52,10 +52,21 @@
...
@@ -52,10 +52,21 @@
.build-header
{
.build-header
{
position
:
relative
;
position
:
relative
;
padding-right
:
40px
;
padding
:
0
;
display
:
flex
;
min-height
:
58px
;
align-items
:
center
;
@media
(
min-width
:
$screen-sm-min
)
{
@media
(
max-width
:
$screen-sm-max
)
{
padding-right
:
0
;
padding-right
:
40px
;
.btn-primary
{
display
:
none
;
}
}
.header-content
{
flex
:
1
;
}
}
a
{
a
{
...
@@ -135,6 +146,19 @@
...
@@ -135,6 +146,19 @@
}
}
}
}
.retry-link
{
color
:
$gl-link-color
;
display
:
none
;
&
:hover
{
text-decoration
:
underline
;
}
@media
(
max-width
:
$screen-sm-max
)
{
display
:
inline-block
;
}
}
.stage-item
{
.stage-item
{
cursor
:
pointer
;
cursor
:
pointer
;
...
...
app/views/projects/builds/_header.html.haml
View file @
a31053af
.content-block.build-header
.content-block.build-header
=
ci_status_with_icon
(
@build
.
status
)
.header-content
Build
=
ci_status_with_icon
(
@build
.
status
)
%strong
##{@build.id}
Build
for commit
%strong
##{@build.id}
=
link_to
ci_status_path
(
@build
.
pipeline
)
do
for commit
%strong
=
@build
.
pipeline
.
short_sha
=
link_to
ci_status_path
(
@build
.
pipeline
)
do
from
%strong
=
@build
.
pipeline
.
short_sha
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@build
.
ref
)
do
from
%code
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
@build
.
ref
)
do
=
@build
.
ref
%code
-
if
@build
.
user
=
@build
.
ref
=
render
"user"
-
if
@build
.
user
=
time_ago_with_tooltip
(
@build
.
created_at
)
=
render
"user"
=
time_ago_with_tooltip
(
@build
.
created_at
)
-
if
can?
(
current_user
,
:update_build
,
@build
)
&&
@build
.
retryable?
-
if
can?
(
current_user
,
:update_build
,
@build
)
&&
@build
.
retryable?
=
link_to
"Retry
"
,
retry_namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
),
class:
'btn btn-white
pull-right'
,
method: :post
=
link_to
"Retry
build"
,
retry_namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
),
class:
'btn btn-primary
pull-right'
,
method: :post
%button
.btn.btn-default.pull-right.visible-xs-block.visible-sm-block.build-gutter-toggle.js-sidebar-build-toggle
{
role:
"button"
,
type:
"button"
}
%button
.btn.btn-default.pull-right.visible-xs-block.visible-sm-block.build-gutter-toggle.js-sidebar-build-toggle
{
role:
"button"
,
type:
"button"
}
=
icon
(
'angle-double-left'
)
=
icon
(
'angle-double-left'
)
app/views/projects/builds/_sidebar.html.haml
View file @
a31053af
...
@@ -43,6 +43,8 @@
...
@@ -43,6 +43,8 @@
.block
{
class:
(
"block-first"
if
!
@build
.
coverage
&&
!
(
can?
(
current_user
,
:read_build
,
@project
)
&&
(
@build
.
artifacts?
||
@build
.
artifacts_expired?
)))
}
.block
{
class:
(
"block-first"
if
!
@build
.
coverage
&&
!
(
can?
(
current_user
,
:read_build
,
@project
)
&&
(
@build
.
artifacts?
||
@build
.
artifacts_expired?
)))
}
.title
.title
Build details
Build details
-
if
can?
(
current_user
,
:update_build
,
@build
)
&&
@build
.
retryable?
=
link_to
"Retry"
,
retry_namespace_project_build_path
(
@project
.
namespace
,
@project
,
@build
),
class:
'pull-right retry-link'
,
method: :post
-
if
@build
.
merge_request
-
if
@build
.
merge_request
%p
.build-detail-row
%p
.build-detail-row
%span
.build-light-text
Merge Request:
%span
.build-light-text
Merge Request:
...
...
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