Commit 6776dcf9 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add colors to build labels

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 2122d7b9
...@@ -13,6 +13,48 @@ ...@@ -13,6 +13,48 @@
.builds, .builds,
.projects-table { .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 { .light {
border-color: $border-color; border-color: $border-color;
} }
......
%tr.build{class: build_status_css_class(build)} %tr.build{class: build_status_css_class(build)}
%td.status %td.status
= build.status %span.ci-status<
= build.status
%td.build-link %td.build-link
= link_to ci_project_build_path(build.project, build) do = link_to ci_project_build_path(build.project, build) do
......
%tr.build{class: commit_status_css_class(commit)} %tr.build{class: commit_status_css_class(commit)}
%td.status %td.status
= commit.status %span.ci-status<
= commit.status
- if commit.running? - if commit.running?
&middot; &middot;
= commit.stage = commit.stage
......
...@@ -44,8 +44,8 @@ ...@@ -44,8 +44,8 @@
%h3 Status %h3 Status
.build.alert{class: commit_status_css_class(@commit)} .build{class: commit_status_css_class(@commit)}
.status .ci-status
= @commit.status.titleize = @commit.status.titleize
%h3 %h3
......
...@@ -11,16 +11,16 @@ ...@@ -11,16 +11,16 @@
by keyword: "#{params[:search]}", by keyword: "#{params[:search]}",
#{@total_count} projects #{@total_count} projects
.wide-table-holder .wide-table-holder
%table.table.projects-table.content-list %table.table.projects-table.content-list
%thead %thead
%tr %tr
%th Project Name %th Project Name
%th Last commit %th Last commit
%th Access %th Access
%th Commits %th Commits
= render @projects = render @projects
%p.text-center.hide.loading %p.text-center.hide.loading
%i.fa.fa-refresh.fa-spin %i.fa.fa-refresh.fa-spin
:coffeescript :coffeescript
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment