_status_message.mobile.haml 1.03 KB
Newer Older
1 2 3 4
-#   Copyright (c) 2010-2011, Diaspora Inc.  This file is
-#   licensed under the Affero General Public License version 3 or later.  See
-#   the COPYRIGHT file.

5 6 7 8
- if defined?(reshare) && reshare
  .photo_area
    - if post.is_a?(StatusMessage)
      -if post.photos.size > 0
9
        .photo-attachments
10 11 12
          - if post.photos.size > 1
            .additional_photo_count
              = "+ #{post.photos.size-1}"
13
          = image_tag post.first_photo_url(:thumb_large), :class => "stream-photo big-stream-photo"
14 15

%div{:class => direction_for(post.text)}
Jonne Haß's avatar
Jonne Haß committed
16
  != post.message.markdownified
17
  - if post.poll
18
    = render "status_messages/poll", poll: post.poll
19 20
  - if post.o_embed_cache
    != o_embed_html post.o_embed_cache
21
  - if post.open_graph_cache
22
    .opengraph
23 24 25 26 27 28 29
      %a{href: post.open_graph_cache.url, target: "_blank"}
        %div
          = image_tag post.open_graph_cache.image
          %strong
            = post.open_graph_cache.title
          %p
            = truncate(post.open_graph_cache.description, length: 250, separator: " ")