summaryrefslogtreecommitdiff
path: root/app/views/dashboard/_projects_head.html.haml
diff options
context:
space:
mode:
authorJosh Frye <joshfng@gmail.com>2016-02-03 16:33:01 -0500
committerJosh Frye <joshfng@gmail.com>2016-02-04 11:40:19 -0500
commit7522ac0b3cf4a777fda5dce3baa699970e5133a6 (patch)
tree79055e852a8f3e0d3da01514e352207d3e533cd3 /app/views/dashboard/_projects_head.html.haml
parent87b61db7ed6b782423397626b6ea414c43f24a15 (diff)
downloadgitlab-ce-7522ac0b3cf4a777fda5dce3baa699970e5133a6.tar.gz
Paginate + ajax filter dashboard projects
Diffstat (limited to 'app/views/dashboard/_projects_head.html.haml')
-rw-r--r--app/views/dashboard/_projects_head.html.haml13
1 files changed, 7 insertions, 6 deletions
diff --git a/app/views/dashboard/_projects_head.html.haml b/app/views/dashboard/_projects_head.html.haml
index d865a2c6fae..17eed52957d 100644
--- a/app/views/dashboard/_projects_head.html.haml
+++ b/app/views/dashboard/_projects_head.html.haml
@@ -13,9 +13,10 @@
Explore Projects
.nav-controls
- = search_field_tag :filter_projects, nil, placeholder: 'Filter by name...', class: 'projects-list-filter form-control hidden-xs input-short', spellcheck: false
- = render 'explore/projects/dropdown'
- - if current_user.can_create_project?
- = link_to new_project_path, class: 'btn btn-new' do
- = icon('plus')
- New Project
+ = form_tag '', method: :get, class: 'project-list-form', id: 'project-list-form' do |f|
+ .append-right-10.hidden-xs.hidden-sm
+ = search_field_tag :filter_projects, params[:filter_projects], placeholder: 'Filter by name...', class: 'projects-list-filter form-control issue_search search-text-input', spellcheck: false, id: 'projects-list-filter'
+ - if current_user.can_create_project?
+ = link_to new_project_path, class: 'btn btn-new' do
+ = icon('plus')
+ New Project