added view for activitystreams public post
This commit is contained in:
parent
938b633c67
commit
118d3720c4
2 changed files with 18 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ class PublicsController < ApplicationController
|
|||
|
||||
respond_to do |format|
|
||||
format.xml{ render :xml => @post.to_diaspora_xml }
|
||||
format.any{ render "#{@post.class.to_s.underscore}", :layout => 'application'}
|
||||
format.any{ render "publics/#{@post.class.to_s.underscore}", :layout => 'application'}
|
||||
end
|
||||
else
|
||||
flash[:error] = I18n.t('posts.show.not_found')
|
||||
|
|
|
|||
17
app/views/publics/activity_streams/photo.haml
Normal file
17
app/views/publics/activity_streams/photo.haml
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
-# Copyright (c) 2010, Diaspora Inc. This file is
|
||||
-# licensed under the Affero General Public License version 3 or later. See
|
||||
-# the COPYRIGHT file.
|
||||
|
||||
#author_info
|
||||
= person_image_link(@person)
|
||||
.from
|
||||
%h2
|
||||
= @person.name
|
||||
|
||||
.span-14.append-1.last
|
||||
#show_text
|
||||
= link_to image_tag(@post.image_url, 'data-small-photo' => @post.image_url, 'data-full-photo' => @post.image_url, :class => 'stream-photo'), @post.object_url, :class => "stream-photo-link"
|
||||
|
||||
.time
|
||||
= how_long_ago(@post)
|
||||
= link_to t('posts.show.permalink'), public_post_path(@post)
|
||||
Loading…
Reference in a new issue