index.html.haml 1.09 KB
Newer Older
danielgrippi's avatar
danielgrippi committed
1
-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
Raphael's avatar
Raphael committed
2
-#   licensed under the Affero General Public License version 3 or later.  See
Raphael's avatar
Raphael committed
3
-#   the COPYRIGHT file.
4

danielvincent's avatar
danielvincent committed
5
- content_for :page_title do
MrZYX's avatar
MrZYX committed
6
  = t('search')
danielvincent's avatar
danielvincent committed
7

8
- content_for :head do
9
  = javascript_include_tag :people
10
  = javascript_include_tag 'contact-list'
11

12
.span-24.last
Maxwell Salzberg's avatar
Maxwell Salzberg committed
13 14
  = search_header
  = looking_for_tag_link
15 16 17
.span-15
  %hr
.clearfix
18
.span-15.append-1
Raphael Sofaer's avatar
Raphael Sofaer committed
19 20
  #people_stream.stream
    - if @hashes.empty?
Steven Fuchs's avatar
Steven Fuchs committed
21
      - if @background_query.present?
22 23 24 25 26 27 28 29

        / this is gross, and should be extracted!
        :javascript
          $(document).ready( function() {
            List.startSearchDelay('#{@background_query}')
          } );

        %p
30
          = t('.searching')
danielgrippi's avatar
danielgrippi committed
31
          = image_tag('static-loader.png', :class => 'loader')
Steven Fuchs's avatar
Steven Fuchs committed
32 33
      - else
        %p
34
          = t('.no_one_found')
Raphael Sofaer's avatar
Raphael Sofaer committed
35
    - else
36
      - for hash in @hashes
37
        = render :partial => 'people/person', :locals => hash
38

danielgrippi's avatar
danielgrippi committed
39
      = will_paginate(@people)
40

41
- if AppConfig.settings.invitations.open?
42 43 44 45
  .span-8.last
    %h4
      = t('.couldnt_find_them_send_invite')
    = render "shared/invitations"
46