put link in via link translation, add via link to mobile site

This commit is contained in:
danielgrippi 2011-05-19 16:06:29 -07:00
parent 83756c5713
commit f2259e5e25
4 changed files with 6 additions and 4 deletions

View file

@ -42,8 +42,7 @@
%span.via %span.via
- if post.activity_streams? - if post.activity_streams?
= t('.via') = t('.via', :link => link_to("#{post.provider_display_name}", post.actor_url)).html_safe
= link_to("#{post.provider_display_name}", post.actor_url)
- unless (defined?(@commenting_disabled) && @commenting_disabled) - unless (defined?(@commenting_disabled) && @commenting_disabled)
| |

View file

@ -17,6 +17,9 @@
.info .info
%span.time{:integer => post.created_at.to_i} %span.time{:integer => post.created_at.to_i}
= t('ago', :time => time_ago_in_words(post.created_at)) = t('ago', :time => time_ago_in_words(post.created_at))
%span.via
- if post.activity_streams?
= t('.via', :link => link_to("#{post.provider_display_name}", post.actor_url)).html_safe
- if post.activity_streams? - if post.activity_streams?
= link_to "#{t('comments', :count => post.comments.length)} →", activity_streams_photo_path(post), :class => 'comment_link right' = link_to "#{t('comments', :count => post.comments.length)} →", activity_streams_photo_path(post), :class => 'comment_link right'

View file

@ -578,7 +578,7 @@ en:
contact_list: contact_list:
all_contacts: "All contacts" all_contacts: "All contacts"
stream_element: stream_element:
via: "via" via: "via %{link}"
like: "Like" like: "Like"
unlike: "Unlike" unlike: "Unlike"
dislike: "Dislike" dislike: "Dislike"

View file

@ -142,7 +142,7 @@ a
:line-height 4em :line-height 4em
:text-align center :text-align center
.time .time, .via
:color #ccc :color #ccc
:font :font
:size smaller :size smaller