diaspora/app/views/shared/_stream_element.mobile.haml
2011-05-19 15:17:42 -07:00

25 lines
923 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=>post.id}}
= person_image_link(post.author, :size => :thumb_small)
.content
.from
= person_link(post.author)
- if post.activity_streams?
= image_tag post.image_url
- else
= render 'status_messages/status_message', :post => post, :photos => post.photos
.info
%span.time{:integer => post.created_at.to_i}
= t('ago', :time => time_ago_in_words(post.created_at))
- if post.activity_streams?
= link_to "#{t('comments', :count => post.comments.length)} →", activity_streams_photo_path(post), :class => 'comment_link right'
- else
= link_to "#{t('comments', :count => post.comments.length)} →", status_message_path(post), :class => 'comment_link right'