Commit ebd06d7e authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Make small ui fixes for CI

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 910bf96e
...@@ -47,4 +47,10 @@ ...@@ -47,4 +47,10 @@
.loading{ .loading{
font-size: 20px; font-size: 20px;
} }
.ci-charts {
fieldset {
margin-bottom: 16px;
}
}
} }
module Ci module Ci
module CommitsHelper module CommitsHelper
def commit_status_alert_class(commit) def commit_status_alert_class(commit)
return unless commit return 'alert-info' unless commit
case commit.status case commit.status
when 'success' when 'success'
......
#charts #charts.ci-charts
= render 'builds' = render 'builds'
= render 'build_times' = render 'build_times'
= render 'overall' = render 'overall'
.search .search
= form_tag "#", method: :get, class: 'navbar-form' do |f| = form_tag "#", method: :get, class: 'ci-search-form' do |f|
.form-group
.input-group .input-group
= search_field_tag "search", params[:search], placeholder: "Search", class: "search-input form-control" = search_field_tag "search", params[:search], placeholder: "Search", class: "search-input form-control"
.input-group-addon .input-group-addon
...@@ -8,9 +7,9 @@ ...@@ -8,9 +7,9 @@
:coffeescript :coffeescript
$('.search .navbar-form').submit -> $('.ci-search-form').submit ->
NProgress.start() NProgress.start()
query = $('.search .navbar-form .search-input').val() query = $('.ci-search-form .search-input').val()
$.get '#{gitlab_ci_projects_path}', { search: query }, (data) -> $.get '#{gitlab_ci_projects_path}', { search: query }, (data) ->
$(".projects").html data.html $(".projects").html data.html
NProgress.done() NProgress.done()
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
.pull-left.fetch-status .pull-left.fetch-status
- if params[:search].present? - if params[:search].present?
by keyword: "#{params[:search]}", by keyword: "#{params[:search]}",
%br
.pull-right
#{@total_count} projects, #{@projects.size} of them added to CI #{@total_count} projects, #{@projects.size} of them added to CI
%br %br
......
- if current_user - if current_user
.gray-content-block.top-block
= render "search" = render "search"
.projects .projects.prepend-top-default
%p.fetch-status.light %p.fetch-status.light
%i.fa.fa-refresh.fa-spin %i.fa.fa-refresh.fa-spin
:coffeescript :coffeescript
......
.container - if current_user && current_user.is_admin? && Ci::Runner.count.zero?
- if current_user && current_user.is_admin? && Ci::Runner.count.zero?
= render 'ci/shared/no_runners' = render 'ci/shared/no_runners'
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