diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 21:00:06 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 21:00:06 +0200 |
commit | ebd06d7e7da9f4df846f1af2ca49c6c64f1f90b0 (patch) | |
tree | 2328311214111b5b28f09222b1aa83686381a6e6 /app/views | |
parent | 910bf96ec3d60194b2fe4444c1df24f141b8450b (diff) | |
download | gitlab-ce-ebd06d7e7da9f4df846f1af2ca49c6c64f1f90b0.tar.gz |
Make small ui fixes for CI
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/ci/charts/show.html.haml | 2 | ||||
-rw-r--r-- | app/views/ci/projects/_search.html.haml | 15 | ||||
-rw-r--r-- | app/views/ci/projects/gitlab.html.haml | 3 | ||||
-rw-r--r-- | app/views/ci/projects/index.html.haml | 5 | ||||
-rw-r--r-- | app/views/layouts/ci/_info.html.haml | 5 |
5 files changed, 13 insertions, 17 deletions
diff --git a/app/views/ci/charts/show.html.haml b/app/views/ci/charts/show.html.haml index b5fcfc1563c..0497f037721 100644 --- a/app/views/ci/charts/show.html.haml +++ b/app/views/ci/charts/show.html.haml @@ -1,4 +1,4 @@ -#charts +#charts.ci-charts = render 'builds' = render 'build_times' = render 'overall' diff --git a/app/views/ci/projects/_search.html.haml b/app/views/ci/projects/_search.html.haml index e65aaa3870d..6d84b25a6af 100644 --- a/app/views/ci/projects/_search.html.haml +++ b/app/views/ci/projects/_search.html.haml @@ -1,16 +1,15 @@ .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() diff --git a/app/views/ci/projects/gitlab.html.haml b/app/views/ci/projects/gitlab.html.haml index 690b6cf3cdb..f57dfcb0790 100644 --- a/app/views/ci/projects/gitlab.html.haml +++ b/app/views/ci/projects/gitlab.html.haml @@ -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 diff --git a/app/views/ci/projects/index.html.haml b/app/views/ci/projects/index.html.haml index 4c74610a575..085a70811ae 100644 --- a/app/views/ci/projects/index.html.haml +++ b/app/views/ci/projects/index.html.haml @@ -1,6 +1,7 @@ - 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 diff --git a/app/views/layouts/ci/_info.html.haml b/app/views/layouts/ci/_info.html.haml index f7230f44242..24c68a6dbf5 100644 --- a/app/views/layouts/ci/_info.html.haml +++ b/app/views/layouts/ci/_info.html.haml @@ -1,3 +1,2 @@ -.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' |