diaspora/app/views/people/contacts.haml
Augier 207b6c6153 Port to Bootstrap 3
correcting images display on stream sidebar

Corrections on profile page
2015-06-04 18:05:43 +02:00

41 lines
1.3 KiB
Text

-# 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
.col-md-3
#profile
-# here be JS
.col-md-9
.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'