Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-02-05 22:33:24 +0300
committerJosh Frye <joshfng@gmail.com>2016-02-09 18:10:41 +0300
commit30e022a2feec7450c4173038d3fdfef0d6242953 (patch)
tree6a145d62527573a381072710fc17ec5785cf7954 /app/views
parent0dc64a8ce1e9bde993ea7a862c71d7edaa69a286 (diff)
Starred, All, and Trending on explore are paged also group projects. Need ajax filter.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/groups/_projects.html.haml17
-rw-r--r--app/views/shared/projects/_list.html.haml1
2 files changed, 10 insertions, 8 deletions
diff --git a/app/views/groups/_projects.html.haml b/app/views/groups/_projects.html.haml
index a829479bb38..73305efbcb9 100644
--- a/app/views/groups/_projects.html.haml
+++ b/app/views/groups/_projects.html.haml
@@ -1,10 +1,11 @@
-.projects-list-holder.prepend-top-default
- .input-group
- = search_field_tag :filter_projects, nil, placeholder: 'Filter by name', class: 'projects-list-filter form-control', spellcheck: false
- - if can? current_user, :create_projects, @group
- %span.input-group-btn
- = link_to new_project_path(namespace_id: @group.id), class: 'btn btn-new' do
- = icon('plus')
- New Project
+.top-area
+ .nav-controls
+ = form_tag request.original_url, method: :get, class: 'project-filter-form', id: 'project-filter-form' do |f|
+ = search_field_tag :filter_projects, params[:filter_projects], placeholder: 'Filter by name...', class: 'input-short project-filter-form-field form-control', spellcheck: false, id: 'project-filter-form-field'
+ - if current_user && current_user.can_create_project?
+ = link_to new_project_path, class: 'btn btn-new' do
+ = icon('plus')
+ New Project
+.projects-list-holder
= render 'shared/projects/list', projects: @projects, projects_limit: 20, stars: false, skip_namespace: true
diff --git a/app/views/shared/projects/_list.html.haml b/app/views/shared/projects/_list.html.haml
index 67edb264b7e..4787502fbc2 100644
--- a/app/views/shared/projects/_list.html.haml
+++ b/app/views/shared/projects/_list.html.haml
@@ -27,3 +27,4 @@
:javascript
new ProjectsList();
+ Dashboard.init();