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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
fc20639c
Commit
fc20639c
authored
Apr 26, 2016
by
Annabel Dunstone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Builds page redesign
parent
7878eb9f
Changes
15
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
75 additions
and
36 deletions
+75
-36
app/assets/stylesheets/framework/buttons.scss
app/assets/stylesheets/framework/buttons.scss
+6
-0
app/assets/stylesheets/pages/builds.scss
app/assets/stylesheets/pages/builds.scss
+13
-0
app/assets/stylesheets/pages/commit.scss
app/assets/stylesheets/pages/commit.scss
+16
-2
app/assets/stylesheets/pages/status.scss
app/assets/stylesheets/pages/status.scss
+1
-1
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-2
app/views/admin/builds/_build.html.haml
app/views/admin/builds/_build.html.haml
+1
-1
app/views/dashboard/snippets/index.html.haml
app/views/dashboard/snippets/index.html.haml
+8
-8
app/views/dashboard/todos/index.html.haml
app/views/dashboard/todos/index.html.haml
+4
-4
app/views/projects/builds/index.html.haml
app/views/projects/builds/index.html.haml
+7
-6
app/views/projects/ci/builds/_build.html.haml
app/views/projects/ci/builds/_build.html.haml
+1
-1
app/views/projects/commit/_ci_menu.html.haml
app/views/projects/commit/_ci_menu.html.haml
+2
-2
app/views/projects/commit/_commit_box.html.haml
app/views/projects/commit/_commit_box.html.haml
+1
-1
app/views/projects/commit/branches.html.haml
app/views/projects/commit/branches.html.haml
+0
-1
app/views/projects/commits/_head.html.haml
app/views/projects/commits/_head.html.haml
+6
-3
app/views/projects/merge_requests/_show.html.haml
app/views/projects/merge_requests/_show.html.haml
+8
-4
No files found.
app/assets/stylesheets/framework/buttons.scss
View file @
fc20639c
...
@@ -251,3 +251,9 @@
...
@@ -251,3 +251,9 @@
.btn-file-option
{
.btn-file-option
{
background
:
linear-gradient
(
180deg
,
$white-light
25%
,
$gray-light
100%
);
background
:
linear-gradient
(
180deg
,
$white-light
25%
,
$gray-light
100%
);
}
}
.btn-refresh
{
i
{
color
:
$gl-icon-color
;
}
}
app/assets/stylesheets/pages/builds.scss
View file @
fc20639c
...
@@ -83,3 +83,16 @@
...
@@ -83,3 +83,16 @@
}
}
}
}
}
}
table
.builds
{
.build-link
{
a
{
color
:
$gl-dark-link-color
;
}
}
.btn-refresh
{
margin-left
:
10px
;
}
}
app/assets/stylesheets/pages/commit.scss
View file @
fc20639c
...
@@ -35,13 +35,19 @@
...
@@ -35,13 +35,19 @@
font-weight
:
bold
;
font-weight
:
bold
;
}
}
.
ci-status
{
.
time_ago
{
margin-
right
:
10
px
;
margin-
left
:
8
px
;
}
}
.fa-clipboard
{
.fa-clipboard
{
color
:
$dropdown-title-btn-color
;
color
:
$dropdown-title-btn-color
;
}
}
.commit-info
{
&
.branches
{
margin-left
:
8px
;
}
}
}
}
.commit-box
{
.commit-box
{
...
@@ -91,6 +97,14 @@
...
@@ -91,6 +97,14 @@
}
}
}
}
.commit-action-buttons
{
i
{
color
:
$gl-icon-color
;
font-size
:
13px
;
margin-right
:
3px
;
}
}
/*
/*
* Commit message textarea for web editor and
* Commit message textarea for web editor and
* custom merge request message
* custom merge request message
...
...
app/assets/stylesheets/pages/status.scss
View file @
fc20639c
.container-fluid
{
.container-fluid
{
.ci-status
{
.ci-status
{
padding
:
2px
7px
;
padding
:
2px
7px
;
margin-right
:
5
px
;
margin-right
:
10
px
;
border
:
1px
solid
#eee
;
border
:
1px
solid
#eee
;
white-space
:
nowrap
;
white-space
:
nowrap
;
@include
border-radius
(
4px
);
@include
border-radius
(
4px
);
...
...
app/helpers/application_helper.rb
View file @
fc20639c
...
@@ -316,8 +316,7 @@ module ApplicationHelper
...
@@ -316,8 +316,7 @@ module ApplicationHelper
html
=
content_tag
:span
,
entity_title
html
=
content_tag
:span
,
entity_title
if
count
.
present?
if
count
.
present?
html
+=
" "
html
+=
content_tag
:span
,
" (
#{
number_with_delimiter
(
count
)
}
)"
html
+=
content_tag
:span
,
number_with_delimiter
(
count
),
class:
'badge'
end
end
html
.
html_safe
html
.
html_safe
...
...
app/views/admin/builds/_build.html.haml
View file @
fc20639c
...
@@ -68,5 +68,5 @@
...
@@ -68,5 +68,5 @@
=
link_to
cancel_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Cancel'
do
=
link_to
cancel_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Cancel'
do
%i
.fa.fa-remove.cred
%i
.fa.fa-remove.cred
-
elsif
defined?
(
allow_retry
)
&&
allow_retry
&&
build
.
retryable?
-
elsif
defined?
(
allow_retry
)
&&
allow_retry
&&
build
.
retryable?
=
link_to
retry_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Retry'
do
=
link_to
retry_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Retry'
,
class:
'btn btn-refresh'
do
%i
.fa.fa-refresh
%i
.fa.fa-refresh
app/views/dashboard/snippets/index.html.haml
View file @
fc20639c
...
@@ -13,26 +13,26 @@
...
@@ -13,26 +13,26 @@
%li
{
class:
(
"active"
unless
params
[
:scope
])
}
%li
{
class:
(
"active"
unless
params
[
:scope
])
}
=
link_to
dashboard_snippets_path
do
=
link_to
dashboard_snippets_path
do
All
All
%span
.badge
%span
=
current_user
.
snippets
.
count
(
#{
current_user
.
snippets
.
count
}
)
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_private"
)
}
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_private"
)
}
=
link_to
dashboard_snippets_path
(
scope:
'are_private'
)
do
=
link_to
dashboard_snippets_path
(
scope:
'are_private'
)
do
Private
Private
%span
.badge
%span
=
current_user
.
snippets
.
are_private
.
count
(
#{
current_user
.
snippets
.
are_private
.
count
}
)
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_internal"
)
}
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_internal"
)
}
=
link_to
dashboard_snippets_path
(
scope:
'are_internal'
)
do
=
link_to
dashboard_snippets_path
(
scope:
'are_internal'
)
do
Internal
Internal
%span
.badge
%span
=
current_user
.
snippets
.
are_internal
.
count
(
#{
current_user
.
snippets
.
are_internal
.
count
}
)
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_public"
)
}
%li
{
class:
(
"active"
if
params
[
:scope
]
==
"are_public"
)
}
=
link_to
dashboard_snippets_path
(
scope:
'are_public'
)
do
=
link_to
dashboard_snippets_path
(
scope:
'are_public'
)
do
Public
Public
%span
.badge
%span
=
current_user
.
snippets
.
are_public
.
count
(
#{
current_user
.
snippets
.
are_public
.
count
}
)
=
render
'snippets/snippets'
=
render
'snippets/snippets'
app/views/dashboard/todos/index.html.haml
View file @
fc20639c
...
@@ -8,15 +8,15 @@
...
@@ -8,15 +8,15 @@
=
link_to
todos_filter_path
(
state:
'pending'
)
do
=
link_to
todos_filter_path
(
state:
'pending'
)
do
%span
%span
To do
To do
%span
{
class:
'badge'
}
%span
=
todos_pending_count
(
#{
todos_pending_count
}
)
-
todo_done_active
=
(
'active'
if
params
[
:state
]
==
'done'
)
-
todo_done_active
=
(
'active'
if
params
[
:state
]
==
'done'
)
%li
{
class:
"todos-done #{todo_done_active}"
}
%li
{
class:
"todos-done #{todo_done_active}"
}
=
link_to
todos_filter_path
(
state:
'done'
)
do
=
link_to
todos_filter_path
(
state:
'done'
)
do
%span
%span
Done
Done
%span
{
class:
'badge'
}
%span
=
todos_done_count
(
#{
todos_done_count
}
)
.nav-controls
.nav-controls
-
if
@todos
.
any?
(
&
:pending?
)
-
if
@todos
.
any?
(
&
:pending?
)
...
...
app/views/projects/builds/index.html.haml
View file @
fc20639c
...
@@ -6,20 +6,21 @@
...
@@ -6,20 +6,21 @@
%li
{
class:
(
'active'
if
@scope
.
nil?
)}
%li
{
class:
(
'active'
if
@scope
.
nil?
)}
=
link_to
project_builds_path
(
@project
)
do
=
link_to
project_builds_path
(
@project
)
do
All
All
%span
.badge.js-totalbuilds-count
%span
.js-totalbuilds-count
=
number_with_delimiter
(
@all_builds
.
count
(
:id
))
(
#{
number_with_delimiter
(
@all_builds
.
count
(
:id
))
}
)
%li
{
class:
(
'active'
if
@scope
==
'running'
)}
%li
{
class:
(
'active'
if
@scope
==
'running'
)}
=
link_to
project_builds_path
(
@project
,
scope: :running
)
do
=
link_to
project_builds_path
(
@project
,
scope: :running
)
do
Running
Running
%span
.
badge.
js-running-count
%span
.js-running-count
=
number_with_delimiter
(
@all_builds
.
running_or_pending
.
count
(
:id
)
)
(
#{
number_with_delimiter
(
@all_builds
.
running_or_pending
.
count
(
:id
))
}
)
%li
{
class:
(
'active'
if
@scope
==
'finished'
)}
%li
{
class:
(
'active'
if
@scope
==
'finished'
)}
=
link_to
project_builds_path
(
@project
,
scope: :finished
)
do
=
link_to
project_builds_path
(
@project
,
scope: :finished
)
do
Finished
Finished
%span
.
badge.
js-running-count
%span
.js-running-count
=
number_with_delimiter
(
@all_builds
.
finished
.
count
(
:id
)
)
(
#{
number_with_delimiter
(
@all_builds
.
finished
.
count
(
:id
))
}
)
.nav-controls
.nav-controls
-
if
can?
(
current_user
,
:update_build
,
@project
)
-
if
can?
(
current_user
,
:update_build
,
@project
)
...
...
app/views/projects/ci/builds/_build.html.haml
View file @
fc20639c
...
@@ -76,5 +76,5 @@
...
@@ -76,5 +76,5 @@
=
link_to
cancel_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Cancel'
do
=
link_to
cancel_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Cancel'
do
%i
.fa.fa-remove.cred
%i
.fa.fa-remove.cred
-
elsif
defined?
(
allow_retry
)
&&
allow_retry
&&
build
.
retryable?
-
elsif
defined?
(
allow_retry
)
&&
allow_retry
&&
build
.
retryable?
=
link_to
retry_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Retry'
do
=
link_to
retry_namespace_project_build_path
(
build
.
project
.
namespace
,
build
.
project
,
build
,
return_to:
request
.
original_url
),
method: :post
,
title:
'Retry'
,
class:
'btn btn-refresh'
do
%i
.fa.fa-refresh
%i
.fa.fa-refresh
app/views/projects/commit/_ci_menu.html.haml
View file @
fc20639c
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
=
nav_link
(
path:
'commit#show'
)
do
=
nav_link
(
path:
'commit#show'
)
do
=
link_to
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
)
do
=
link_to
namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
)
do
Changes
Changes
%span
.badge
=
@diffs
.
count
%span
(
#{
@diffs
.
count
}
)
=
nav_link
(
path:
'commit#builds'
)
do
=
nav_link
(
path:
'commit#builds'
)
do
=
link_to
builds_namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
)
do
=
link_to
builds_namespace_project_commit_path
(
@project
.
namespace
,
@project
,
@commit
.
id
)
do
Builds
Builds
%span
.badge
=
@statuses
.
count
%span
(
#{
@statuses
.
count
}
)
app/views/projects/commit/_commit_box.html.haml
View file @
fc20639c
.pull-right
.pull-right
.commit-action-buttons
%div
%div
-
if
@notes_count
>
0
-
if
@notes_count
>
0
%span
.btn.disabled.btn-grouped
%span
.btn.disabled.btn-grouped
...
...
app/views/projects/commit/branches.html.haml
View file @
fc20639c
...
@@ -3,7 +3,6 @@
...
@@ -3,7 +3,6 @@
-
branch
=
commit_default_branch
(
@project
,
@branches
)
-
branch
=
commit_default_branch
(
@project
,
@branches
)
=
link_to
(
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
branch
))
do
=
link_to
(
namespace_project_tree_path
(
@project
.
namespace
,
@project
,
branch
))
do
%span
.label.label-gray
%span
.label.label-gray
%i
.fa.fa-code-fork
=
branch
=
branch
-
if
@branches
.
any?
||
@tags
.
any?
-
if
@branches
.
any?
||
@tags
.
any?
=
link_to
(
"#"
,
class:
"js-details-expand"
)
do
=
link_to
(
"#"
,
class:
"js-details-expand"
)
do
...
...
app/views/projects/commits/_head.html.haml
View file @
fc20639c
...
@@ -2,7 +2,8 @@
...
@@ -2,7 +2,8 @@
=
nav_link
(
controller:
[
:commit
,
:commits
])
do
=
nav_link
(
controller:
[
:commit
,
:commits
])
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
link_to
namespace_project_commits_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
Commits
Commits
%span
.badge
=
number_with_delimiter
(
@repository
.
commit_count
)
%span
(
#{
number_with_delimiter
(
@repository
.
commit_count
)
}
)
=
nav_link
(
controller:
%w(network)
)
do
=
nav_link
(
controller:
%w(network)
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
=
link_to
namespace_project_network_path
(
@project
.
namespace
,
@project
,
current_ref
)
do
...
@@ -15,9 +16,11 @@
...
@@ -15,9 +16,11 @@
=
nav_link
(
html_options:
{
class:
branches_tab_class
})
do
=
nav_link
(
html_options:
{
class:
branches_tab_class
})
do
=
link_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_branches_path
(
@project
.
namespace
,
@project
)
do
Branches
Branches
%span
.badge.js-totalbranch-count
=
@repository
.
branch_count
%span
.js-totalbranch-count
(
#{
@repository
.
branch_count
}
)
=
nav_link
(
controller:
[
:tags
,
:releases
])
do
=
nav_link
(
controller:
[
:tags
,
:releases
])
do
=
link_to
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
do
=
link_to
namespace_project_tags_path
(
@project
.
namespace
,
@project
)
do
Tags
Tags
%span
.badge.js-totaltags-count
=
@repository
.
tag_count
%span
.js-totaltags-count
(
#{
@repository
.
tag_count
}
)
app/views/projects/merge_requests/_show.html.haml
View file @
fc20639c
...
@@ -50,20 +50,24 @@
...
@@ -50,20 +50,24 @@
%li
.notes-tab
%li
.notes-tab
=
link_to
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#notes'
,
action:
'notes'
,
toggle:
'tab'
}
do
=
link_to
namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#notes'
,
action:
'notes'
,
toggle:
'tab'
}
do
Discussion
Discussion
%span
.badge
=
@merge_request
.
mr_and_commit_notes
.
user
.
nonawards
.
count
%span
(
#{
@merge_request
.
mr_and_commit_notes
.
user
.
nonawards
.
count
}
)
%li
.commits-tab
%li
.commits-tab
=
link_to
commits_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#commits'
,
action:
'commits'
,
toggle:
'tab'
}
do
=
link_to
commits_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#commits'
,
action:
'commits'
,
toggle:
'tab'
}
do
Commits
Commits
%span
.badge
=
@commits
.
size
%span
(
#{
@commits
.
size
}
)
-
if
@ci_commit
-
if
@ci_commit
%li
.builds-tab
%li
.builds-tab
=
link_to
builds_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'#builds'
,
action:
'builds'
,
toggle:
'tab'
}
do
=
link_to
builds_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'#builds'
,
action:
'builds'
,
toggle:
'tab'
}
do
Builds
Builds
%span
.badge
=
@statuses
.
size
%span
(
#{
@statuses
.
size
}
)
%li
.diffs-tab
%li
.diffs-tab
=
link_to
diffs_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#diffs'
,
action:
'diffs'
,
toggle:
'tab'
}
do
=
link_to
diffs_namespace_project_merge_request_path
(
@project
.
namespace
,
@project
,
@merge_request
),
data:
{
target:
'div#diffs'
,
action:
'diffs'
,
toggle:
'tab'
}
do
Changes
Changes
%span
.badge
=
@merge_request
.
diff_size
%span
(
#{
@merge_request
.
diff_size
}
)
.tab-content
.tab-content
#notes
.notes.tab-pane.voting_notes
#notes
.notes.tab-pane.voting_notes
...
...
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