diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-18 19:24:33 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-18 19:24:33 +0300 |
commit | 6776dcf90b9e101b8c9341ea83621e48f87584d6 (patch) | |
tree | e9ad63a35412f9857ec62ac934ec936cecfd7c8e /app/views | |
parent | 2122d7b919821f41e90a13622dee31bce60b2a40 (diff) |
Add colors to build labels
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/ci/builds/_build.html.haml | 3 | ||||
-rw-r--r-- | app/views/ci/commits/_commit.html.haml | 3 | ||||
-rw-r--r-- | app/views/ci/commits/show.html.haml | 4 | ||||
-rw-r--r-- | app/views/ci/projects/index.html.haml | 18 |
4 files changed, 15 insertions, 13 deletions
diff --git a/app/views/ci/builds/_build.html.haml b/app/views/ci/builds/_build.html.haml index a53c64ba3f5..b31acec460d 100644 --- a/app/views/ci/builds/_build.html.haml +++ b/app/views/ci/builds/_build.html.haml @@ -1,6 +1,7 @@ %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 diff --git a/app/views/ci/commits/_commit.html.haml b/app/views/ci/commits/_commit.html.haml index aa116fa12dc..4b2f5e28a4d 100644 --- a/app/views/ci/commits/_commit.html.haml +++ b/app/views/ci/commits/_commit.html.haml @@ -1,6 +1,7 @@ %tr.build{class: commit_status_css_class(commit)} %td.status - = commit.status + %span.ci-status< + = commit.status - if commit.running? · = commit.stage diff --git a/app/views/ci/commits/show.html.haml b/app/views/ci/commits/show.html.haml index 8f75d95b214..477382bb6c1 100644 --- a/app/views/ci/commits/show.html.haml +++ b/app/views/ci/commits/show.html.haml @@ -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 diff --git a/app/views/ci/projects/index.html.haml b/app/views/ci/projects/index.html.haml index 8de205d57aa..2b618d61f79 100644 --- a/app/views/ci/projects/index.html.haml +++ b/app/views/ci/projects/index.html.haml @@ -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 |