diaspora/app/views/messages/_message.haml
behrooz shabani (everplays) 22bb6177d4 <p> can't be inside another one - breaks direction detection
we are applying direction of content on <p> & markdownify always
generates a <p> so we have something like <p
class="ltr"><p>...</p></p> but paragraph can't be inside another
paragraph & browsers sees something like <p
class="rtl"></p><p>...</p></p> so applied direction will be ignored
2011-09-10 16:14:30 +04:30

16 lines
507 B
Text

-# Copyright (c) 2010, 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}}
= person_image_link(message.author, :size => :thumb_small)
.content
.from
= person_link(message.author, :class => 'author')
%time.timeago{:datetime => message.created_at}
= how_long_ago(message)
%div{ :class => direction_for(message.text) }
= markdownify(message)