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
Boxiang Sun
gitlab-ce
Commits
6776dcf9
Commit
6776dcf9
authored
Sep 18, 2015
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add colors to build labels
Signed-off-by:
Dmitriy Zaporozhets
<
dmitriy.zaporozhets@gmail.com
>
parent
2122d7b9
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
57 additions
and
13 deletions
+57
-13
app/assets/stylesheets/ci/projects.scss
app/assets/stylesheets/ci/projects.scss
+42
-0
app/views/ci/builds/_build.html.haml
app/views/ci/builds/_build.html.haml
+2
-1
app/views/ci/commits/_commit.html.haml
app/views/ci/commits/_commit.html.haml
+2
-1
app/views/ci/commits/show.html.haml
app/views/ci/commits/show.html.haml
+2
-2
app/views/ci/projects/index.html.haml
app/views/ci/projects/index.html.haml
+9
-9
No files found.
app/assets/stylesheets/ci/projects.scss
View file @
6776dcf9
...
...
@@ -13,6 +13,48 @@
.builds
,
.projects-table
{
.build-danger
{
.ci-status
{
color
:
$gl-danger
;
border-color
:
$gl-danger
;
}
}
.build-success
{
.ci-status
{
color
:
$gl-success
;
border-color
:
$gl-success
;
}
}
.build-info
{
.ci-status
{
color
:
$gl-info
;
border-color
:
$gl-info
;
}
}
.build-disabled
{
.ci-status
{
color
:
$gl-gray
;
border-color
:
$gl-gray
;
}
}
.build-warning
{
.ci-status
{
color
:
$gl-warning
;
border-color
:
$gl-warning
;
}
}
.ci-status
{
padding
:
2px
5px
;
margin-right
:
5px
;
border
:
1px
solid
#EEE
;
@include
border-radius
(
4px
);
}
.light
{
border-color
:
$border-color
;
}
...
...
app/views/ci/builds/_build.html.haml
View file @
6776dcf9
%tr
.build
{
class:
build_status_css_class
(
build
)}
%td
.status
=
build
.
status
%span
.ci-status
<
=
build
.
status
%td
.build-link
=
link_to
ci_project_build_path
(
build
.
project
,
build
)
do
...
...
app/views/ci/commits/_commit.html.haml
View file @
6776dcf9
%tr
.build
{
class:
commit_status_css_class
(
commit
)}
%td
.status
=
commit
.
status
%span
.ci-status
<
=
commit
.
status
-
if
commit
.
running?
&
middot
;
=
commit
.
stage
...
...
app/views/ci/commits/show.html.haml
View file @
6776dcf9
...
...
@@ -44,8 +44,8 @@
%h3
Status
.build
.alert
{
class:
commit_status_css_class
(
@commit
)}
.status
.build
{
class:
commit_status_css_class
(
@commit
)}
.
ci-
status
=
@commit
.
status
.
titleize
%h3
...
...
app/views/ci/projects/index.html.haml
View file @
6776dcf9
...
...
@@ -11,16 +11,16 @@
by keyword: "
#{
params
[
:search
]
}
",
#{
@total_count
}
projects
.wide-table-holder
%table
.table.projects-table.content-list
%thead
%tr
%th
Project Name
%th
Last commit
%th
Access
%th
Commits
.wide-table-holder
%table
.table.projects-table.content-list
%thead
%tr
%th
Project Name
%th
Last commit
%th
Access
%th
Commits
=
render
@projects
=
render
@projects
%p
.text-center.hide.loading
%i
.fa.fa-refresh.fa-spin
:coffeescript
...
...
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