diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-18 10:44:10 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-18 10:44:10 +0300 |
commit | e86668984f4f7465ed39ffcf9ce09aabfa8f79da (patch) | |
tree | 34b5dc13d0b579b0293fd21af1127ffef12531cc /app/views | |
parent | 0aec0d53b10078613b66b0d41424ee4264ae6406 (diff) |
Style CI project/build list
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/ci/admin/builds/_build.html.haml | 2 | ||||
-rw-r--r-- | app/views/ci/admin/projects/_project.html.haml | 2 | ||||
-rw-r--r-- | app/views/ci/admin/runners/show.html.haml | 2 | ||||
-rw-r--r-- | app/views/ci/builds/_build.html.haml | 2 | ||||
-rw-r--r-- | app/views/ci/builds/show.html.haml | 4 | ||||
-rw-r--r-- | app/views/ci/commits/_commit.html.haml | 2 | ||||
-rw-r--r-- | app/views/ci/commits/show.html.haml | 2 | ||||
-rw-r--r-- | app/views/ci/projects/_project.html.haml | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/app/views/ci/admin/builds/_build.html.haml b/app/views/ci/admin/builds/_build.html.haml index 47f8df8f98e..923219a2e46 100644 --- a/app/views/ci/admin/builds/_build.html.haml +++ b/app/views/ci/admin/builds/_build.html.haml @@ -1,5 +1,5 @@ - if build.commit && build.project - %tr.build.alert{class: build_status_alert_class(build)} + %tr.build{class: build_status_css_class(build)} %td.build-link = link_to ci_project_build_url(build.project, build) do %strong #{build.id} diff --git a/app/views/ci/admin/projects/_project.html.haml b/app/views/ci/admin/projects/_project.html.haml index 505dd4b3fdc..8017fb2086b 100644 --- a/app/views/ci/admin/projects/_project.html.haml +++ b/app/views/ci/admin/projects/_project.html.haml @@ -1,5 +1,5 @@ - last_commit = project.last_commit -%tr.alert{class: commit_status_alert_class(last_commit) } +%tr{class: commit_status_css_class(last_commit) } %td = project.id %td diff --git a/app/views/ci/admin/runners/show.html.haml b/app/views/ci/admin/runners/show.html.haml index 24e0ad3b070..409db6ba82c 100644 --- a/app/views/ci/admin/runners/show.html.haml +++ b/app/views/ci/admin/runners/show.html.haml @@ -102,7 +102,7 @@ %th Finished at - @builds.each do |build| - %tr.build.alert{class: build_status_alert_class(build)} + %tr.build.alert{class: build_status_css_class(build)} %td.status = build.status diff --git a/app/views/ci/builds/_build.html.haml b/app/views/ci/builds/_build.html.haml index da306c9f020..a53c64ba3f5 100644 --- a/app/views/ci/builds/_build.html.haml +++ b/app/views/ci/builds/_build.html.haml @@ -1,4 +1,4 @@ -%tr.build.alert{class: build_status_alert_class(build)} +%tr.build{class: build_status_css_class(build)} %td.status = build.status diff --git a/app/views/ci/builds/show.html.haml b/app/views/ci/builds/show.html.haml index d1e955b5012..2a08bf14f43 100644 --- a/app/views/ci/builds/show.html.haml +++ b/app/views/ci/builds/show.html.haml @@ -21,7 +21,7 @@ .row .col-md-9 - .build-head.alert{class: build_status_alert_class(@build)} + .build-head.alert{class: build_status_css_class(@build)} %h4 - if @build.commit.tag? Build for tag @@ -150,7 +150,7 @@ %h4.title #{pluralize(@builds.count, "other build")} for #{@build.short_sha}: %table.builds - @builds.each_with_index do |build, i| - %tr.build.alert{class: build_status_alert_class(build)} + %tr.build.alert{class: build_status_css_class(build)} %td = link_to ci_project_build_url(@project, build) do %span ##{build.id} diff --git a/app/views/ci/commits/_commit.html.haml b/app/views/ci/commits/_commit.html.haml index c1b1988d147..aa116fa12dc 100644 --- a/app/views/ci/commits/_commit.html.haml +++ b/app/views/ci/commits/_commit.html.haml @@ -1,4 +1,4 @@ -%tr.build.alert{class: commit_status_alert_class(commit)} +%tr.build{class: commit_status_css_class(commit)} %td.status = commit.status - if commit.running? diff --git a/app/views/ci/commits/show.html.haml b/app/views/ci/commits/show.html.haml index 1aeb557314a..8f75d95b214 100644 --- a/app/views/ci/commits/show.html.haml +++ b/app/views/ci/commits/show.html.haml @@ -44,7 +44,7 @@ %h3 Status -.build.alert{class: commit_status_alert_class(@commit)} +.build.alert{class: commit_status_css_class(@commit)} .status = @commit.status.titleize diff --git a/app/views/ci/projects/_project.html.haml b/app/views/ci/projects/_project.html.haml index e4a811119e1..47415265b44 100644 --- a/app/views/ci/projects/_project.html.haml +++ b/app/views/ci/projects/_project.html.haml @@ -1,5 +1,5 @@ - last_commit = project.last_commit -%tr.alert{class: commit_status_alert_class(last_commit) } +%tr{class: commit_status_css_class(last_commit) } %td = link_to [:ci, project] do = project.name |