32 lines
1.2 KiB
Text
32 lines
1.2 KiB
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.
|
|
|
|
:css
|
|
footer{display: none;}
|
|
|
|
#show_content.photos
|
|
.photo
|
|
= image_tag photo.url(:scaled_full)
|
|
.stream_element{:class => "photo_mobile"}
|
|
.content
|
|
.from
|
|
= person_image_link(photo.author, :size => :thumb_small)
|
|
= person_link(photo.author)
|
|
.info
|
|
%span
|
|
= link_to(post_path(photo)) do
|
|
= timeago(photo.created_at)
|
|
|
|
-if additional_photos && additional_photos.length > 1
|
|
#photo_controls
|
|
- if previous_photo != additional_photos.last
|
|
= link_to(content_tag(:i, nil, id: "arrow-left", class: "entypo-chevron-left"),
|
|
person_photo_path(previous_photo.author, previous_photo),
|
|
rel: "prefetch",
|
|
class: "arrow left")
|
|
- if next_photo == additional_photos[additional_photos.index(photo)+1]
|
|
= link_to(content_tag(:i, nil, id: "arrow-right", class: "entypo-chevron-right"),
|
|
person_photo_path(next_photo.author, next_photo),
|
|
rel: "prefetch",
|
|
class: "arrow right")
|