diaspora/app/views/status_messages/_status_message.mobile.haml
Jonne Haß 17580c123d Merge pull request #4353 from netom/oembed_to_mobile_view
Added oembed display to mobile stream view

Conflicts:
	app/views/status_messages/_status_message.mobile.haml
2013-08-27 21:59:00 +02:00

23 lines
798 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.
- if defined?(reshare) && reshare
.photo_area
- if post.is_a?(StatusMessage)
-if post.photos.size > 0
.photo_attachments
- if post.photos.size > 1
.additional_photo_count
= "+ #{post.photos.size-1}"
= image_tag post.first_photo_url(:thumb_large), :class => "stream-photo big-stream-photo"
- elsif post.activity_streams?
= image_tag post.image_url
%div{:class => direction_for(post.text)}
!= markdownify(post)
- if post.o_embed_cache
!= o_embed_html post.o_embed_cache
-if post.open_graph_cache
.opengraph
!= og_html post.open_graph_cache