summaryrefslogtreecommitdiff
path: root/app/views/projects
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-12-20 08:29:14 +0200
committerDmitriy Zaporozhets <dzaporozhets@sphereconsultinginc.com>2011-12-20 08:29:14 +0200
commit321dbb7bac5b2859cd5f30fdee7a1a2f39e122ae (patch)
treed4141262df31c2a0d0d91623338ab907e7e1a7c0 /app/views/projects
parentcff951912734a5aeea0ebb3e4ca01f704004a466 (diff)
downloadgitlab-ce-321dbb7bac5b2859cd5f30fdee7a1a2f39e122ae.tar.gz
removed project filter
Diffstat (limited to 'app/views/projects')
-rw-r--r--app/views/projects/index.html.haml47
-rw-r--r--app/views/projects/index.js.haml9
2 files changed, 25 insertions, 31 deletions
diff --git a/app/views/projects/index.html.haml b/app/views/projects/index.html.haml
index 9cbfd9505be..8a4343b05ef 100644
--- a/app/views/projects/index.html.haml
+++ b/app/views/projects/index.html.haml
@@ -1,30 +1,29 @@
- content_for(:body_class, "projects-page")
-- content_for(:page_title) do
- .container_4
- .grid_4
- - if current_user.can_create_project?
- %a.grey-button.right{:href => new_project_path} Create new project
- %h2.icon
- %span
- Projects
- %center
- = form_tag projects_path, :method => :get, :remote => true, :id => "projects_search_form" do
- = search_field_tag :project_search, nil, { :placeholder => 'Filter projects by name', :class => 'project_search text' }
+.container_4
+ .grid_4
+ - if current_user.can_create_project?
+ %a.grey-button.right{:href => new_project_path} Create new project
+ %h2.icon
+ %span
+ Projects
- %div.clear
- - unless @projects.empty?
- %div{:class => "tile"}
- = render "tile"
+ %div.clear
+ - unless @projects.empty?
+ %div{:class => "tile"}
+ = render "tile"
+
+ -# If projects requris paging
+ -# We add ajax loader & init script
+ - if @projects.count == @limit
.clear
.loading{ :style => "display:none;"}
%center= image_tag "ajax-loader.gif"
- - if @projects.count == @limit
- :javascript
- $(function(){
- ProjectsList.init(16);
- });
- - else
- %center.prepend-top
- %h2
- %cite Nothing here
+ :javascript
+ $(function(){
+ ProjectsList.init(16);
+ });
+ - else
+ %center.prepend-top
+ %h2
+ %cite Nothing here
diff --git a/app/views/projects/index.js.haml b/app/views/projects/index.js.haml
index 9b990734f3a..25da7cb4202 100644
--- a/app/views/projects/index.js.haml
+++ b/app/views/projects/index.js.haml
@@ -1,7 +1,2 @@
-- if params[:replace]
- :plain
- ProjectsList.replace(#{@projects.count}, "#{escape_javascript(render(:partial => 'projects/tile'))}");
-- else
- :plain
- ProjectsList.append(#{@projects.count}, "#{escape_javascript(render(:partial => 'projects/tile'))}");
-
+:plain
+ ProjectsList.append(#{@projects.count}, "#{escape_javascript(render(:partial => 'projects/tile'))}");