diaspora/app/views/conversations/_show.haml
2015-03-12 13:08:23 +01:00

39 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.
.conversation_participants
.control-icons.pull-right
- if conversation.participants.count > 1
= link_to(content_tag(:i, nil, :class => 'entypo cross'),
conversation_visibility_path(conversation),
:method => 'delete',
:data => { :confirm => "#{t('.hide')}?" },
:title => t('.hide'),
:class => 'hide_conversation')
- else
= link_to(content_tag(:i, nil, :class => 'entypo trash'),
conversation_visibility_path(conversation),
:method => 'delete',
:data => { :confirm => "#{t('.delete')}?" },
:title => t('.delete'),
:class => 'delete_conversation')
%h3{ :class => direction_for(conversation.subject) }
= conversation.subject
- for participant in conversation.participants
= person_image_link(participant, :size => :thumb_small)
.stream
= render :partial => 'messages/message', :collection => conversation.messages
.stream_element.new_message
.media
.img
= owner_image_tag(:thumb_small)
.bd
= form_for [conversation, Message.new] do |message|
= message.text_area :text, :class => 'span12', :rows => 5, :tabindex => 1
= message.submit t('.reply').capitalize, 'data-disable-with' => t('.replying'), class: 'btn btn-primary pull-right creation', tabindex: 2