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

contacts.haml « people « views « app - github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 4046fdb47525101043d783f05ec224cd21d651da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
-# TODO this should happen in the js app
- content_for :head do
  - if user_signed_in? && @person != current_user.person
    :javascript
      Mentions.options.prefillMention = Mentions._contactToMention(#{j @person.to_json});

- content_for :page_title do
  = @person.name

.container-fluid#profile_container
  .row-fluid
    .span3
      #profile
        -# here be JS

    .span9
      .profile_header
        -# more JS

      .stream_container
        #people_stream.stream
          - @hashes.each do |hash|
            = render :partial => 'people/person', :locals => hash
        = will_paginate @contacts_of_contact, :renderer => WillPaginate::ActionView::BootstrapLinkRenderer

      %a{:id=>"back-to-top", :title=>"#{t('layouts.application.back_to_top')}", :href=>"#"}
        ⇧

-if user_signed_in? && @person
  #new_status_message_pane
    = render 'shared/modal',
      :path => new_status_message_path(:person_id => @person.id),
      :title => t('status_messages.new.mentioning', :person => @person.name),
      :id => 'mentionModal'

  -if @contact
    #new_conversation_pane
      = render 'shared/modal',
        :path => new_conversation_path(:contact_id => @contact.id, :name => @contact.person.name, :modal => true),
        :title => t('conversations.index.new_conversation'),
        :id => 'conversationModal'