added via links

This commit is contained in:
danielgrippi 2011-05-19 13:13:08 -07:00
parent 6c31867345
commit 177061d1c5
4 changed files with 19 additions and 6 deletions

View file

@ -20,4 +20,12 @@ module StreamHelper
post.created_at
end
end
def show_link_for post
if post.activity_streams?
how_long_ago(post)
else
link_to(how_long_ago(post), status_message_path(post))
end
end
end

View file

@ -24,7 +24,7 @@
%time.time.timeago{:datetime => post.created_at, :integer => time_for_sort(post).to_i}
- if post.activity_streams?
= image_tag post.image_url
= link_to image_tag(post.image_url), post.object_url
- else
= render 'status_messages/status_message', :post => post, :photos => post.photos
@ -38,8 +38,13 @@
= aspect_badges(aspects_with_post(all_aspects, post), :link => true)
%span.timeago
= link_to(how_long_ago(post), status_message_path(post))
= show_link_for post
%span.via
- if post.activity_streams?
= t('.via')
= link_to("#{post.provider_display_name}", post.actor_url)
- unless (defined?(@commenting_disabled) && @commenting_disabled)
|
%span.like_action

View file

@ -577,6 +577,7 @@ en:
contact_list:
all_contacts: "All contacts"
stream_element:
via: "via"
like: "Like"
unlike: "Unlike"
dislike: "Dislike"

View file

@ -449,12 +449,11 @@ ul.dropdown
:color $blue
.time,
.timeago
.timeago,
.via
:color #999
a
:color #ccc
:margin
:right 1px
:color #999
:text
:decoration none
:border none