diaspora/app/views/messages/_message.haml

15 lines
648 B
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.
.stream_element{:data=>{:guid=>message.id}, :id => ('first_unread' if @first_unread_message_id == message.id)}
.media
.img
= person_image_link(message.author, :size => :thumb_small)
.bd
= person_link(message.author, :class => 'author from')
%time.timeago{:datetime => message.created_at}
= t('ago', :time => time_ago_in_words(message.created_at))
%div{ :class => direction_for(message.text) }
= markdownify(message, :oembed => true)