Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/publics/photo.html.haml')
-rw-r--r--app/views/publics/photo.html.haml36
1 files changed, 36 insertions, 0 deletions
diff --git a/app/views/publics/photo.html.haml b/app/views/publics/photo.html.haml
new file mode 100644
index 000000000..b8e2f7123
--- /dev/null
+++ b/app/views/publics/photo.html.haml
@@ -0,0 +1,36 @@
+-# Copyright (c) 2010, Diaspora Inc. This file is
+-# licensed under the Affero General Public License version 3 or later. See
+-# the COPYRIGHT file.
+
+- content_for :head do
+ = include_javascripts :photos
+
+#author_info
+ = person_image_link(@person)
+ .from
+ %h2
+ = @person.name
+.span-14.append-1.last
+ #show_photo{:data=>{:guid=>@post.id}}
+ = image_tag @post.url(:scaled_full)
+
+ #caption
+ = @post.text
+
+ %br
+
+.span-9.last
+ - if @post.status_message_guid
+ #original_post_info
+ %h4{:style=>"position:relative;"}
+ = t('photos.show.original_post')
+ = link_to t('photos.show.view'), public_post_path(@post.status_message)
+
+ %p
+ = @post.status_message.text
+
+ %p
+ - for photo in @post.status_message.photos
+ .thumb_small= link_to (image_tag photo.url(:thumb_small)), public_post_path(photo)
+ %p
+ = link_to t('posts.show.permalink'), public_post_path(@post)