diaspora/app/views/people/show.html.haml
2015-08-27 23:50:20 +02:00

51 lines
1.5 KiB
Text

-# Copyright (c) 2010-2011, Diaspora Inc. This file is
-# licensed under the Affero General Public License version 3 or later. See
-# the COPYRIGHT file.
-# 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
-if user_signed_in? && current_page?(person_path(current_user.person))
= render 'publisher/publisher', publisher_aspects_for(nil)
.stream.clearfix#main_stream
-# JS
#paginate
%span.loader.hidden
.spinner
%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'