-# 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 .key_photo = link_to (image_tag photos.first.url(:scaled_full)), photo_path(photos.first) %br - 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 .thumbs - for photo in photos = 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])