Restyled services page in order to make it more usable

This commit is contained in:
Dmitriy Zaporozhets 2012-12-02 08:41:06 +03:00
parent c0c5d94b2b
commit 6ea6ab7c8d
4 changed files with 36 additions and 21 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

View file

@ -1,16 +1,19 @@
%h3.page_title %h3.page_title
Services → GitLab CI Integration GitLab CI
%small Continuous integration server from GitLab
.right .right
.thumbnail - if @service.active
- if @service.active %small.cgreen Enabled
= image_tag 'service-gitlab-ci.png', class: 'small' - else
- else %small.btn Disabled
= image_tag 'service-disabled-gitlab-ci.png', class: 'small'
.back_link
= link_to project_services_path(@project) do
← to services
%hr %hr
= form_for(@service, :as => :service, :url => project_service_path(@project, :gitlab_ci), :method => :put) do |f| = form_for(@service, :as => :service, :url => project_service_path(@project, :gitlab_ci), :method => :put) do |f|
- if @service.errors.any? - if @service.errors.any?
.alert-message.block-message.error .alert-message.block-message.error

View file

@ -1,15 +1,27 @@
= render "projects/project_head" = render "projects/project_head"
%h3.page_title Services %h3.page_title Services
%hr %br
.row
.span6
.padded
%p.slead Continuous integration server from GitLab
.thumbnail.left
= link_to edit_project_service_path(@project, :gitlab_ci) do
- if @gitlab_ci_service.try :active
= image_tag 'service-gitlab-ci.png'
- else
= image_tag 'service-disabled-gitlab-ci.png'
%ul.unstyled.ui-box
%li.wll
%h4
= link_to edit_project_service_path(@project, :gitlab_ci) do
GitLab CI
%small Continuous integration server from GitLab
.right
- if @gitlab_ci_service.active
%small.cgreen Enabled
- else
%small.btn Disabled
%li.wll
%h4
Jenkins CI
%small An extendable open source continuous integration server
.right
%small Not implemented yet
%li.wll
%h4
Campfire
%small Web-based group chat tool
.right
%small Not implemented yet