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