diaspora/app/views/status_messages/_status_message.haml

19 lines
730 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.
- if photos.size > 0
.photo_attachments
= link_to (image_tag photos.first.url(:scaled_full)), photo_path(photos.first)
- if photos.size > 1
- if photos.size >= 8
- for photo in photos[1..8]
= link_to (image_tag photo.url(:thumb_small)), photo_path(photo)
- else
- for photo in photos[1..photos.size]
= link_to (image_tag photo.url(:thumb_small)), photo_path(photo)
= markdownify(post.message, :youtube_maps => post[:youtube_titles])
- else
= markdownify(post.message, :youtube_maps => post[:youtube_titles])