summaryrefslogtreecommitdiff
path: root/app/views/public/projects
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-13 21:18:08 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-05-13 21:18:08 +0300
commitc5feabde2d8cd023215af4d2ceeb7a64839fc428 (patch)
tree5285844980d5e42ecf86ff4d1df63704ed12a949 /app/views/public/projects
parent50d4420237a9de7be1304607147aec22e4a14af7 (diff)
downloadgitlab-ce-c5feabde2d8cd023215af4d2ceeb7a64839fc428.tar.gz
Add simple search to projects in public area
Diffstat (limited to 'app/views/public/projects')
-rw-r--r--app/views/public/projects/index.html.haml16
1 files changed, 13 insertions, 3 deletions
diff --git a/app/views/public/projects/index.html.haml b/app/views/public/projects/index.html.haml
index c31fcfd15de..e2b19d0d824 100644
--- a/app/views/public/projects/index.html.haml
+++ b/app/views/public/projects/index.html.haml
@@ -1,6 +1,16 @@
-%h3.page_title
- Projects (#{@projects.total_count})
- %small with read-only access
+.row
+ .span6
+ %h3.page_title
+ Projects (#{@projects.total_count})
+ %small with read-only access
+ .span6
+ .pull-right
+ = form_tag public_projects_path, method: :get, class: 'form-inline' do |f|
+ .search-holder
+ .input
+ = search_field_tag :search, params[:search], placeholder: "gitlab-ci", class: "span3 search-text-input", id: "projects_search"
+ = submit_tag 'Search', class: "btn btn-primary wide"
+
%hr
.public-projects