remove repeated link, fixed cucumber

This commit is contained in:
danielgrippi 2011-07-28 14:51:56 -07:00
parent 87d0f9d6fd
commit dfa5824dc1
2 changed files with 10 additions and 13 deletions

View file

@ -8,22 +8,19 @@
= person_image_link(post.author, :size => :thumb_small) = person_image_link(post.author, :size => :thumb_small)
.content .content
%span.from .post_initial_info
= person_link(post.author, :class => "hovercardable") %span.from
%span.details = person_link(post.author, :class => "hovercardable")
%span.details
%span.timeago
= link_to(how_long_ago(post), post_path(post)) %span.timeago
= link_to(how_long_ago(post), post_path(post))
= t("reshares.reshare.reshare", :count => post.reshares.size)
= t("reshares.reshare.reshare", :count => post.reshares.size)
- if post.activity_streams? - if post.activity_streams?
= 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" = 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"
- else - else
= render 'status_messages/status_message', :post => post, :photos => post.photos = render 'status_messages/status_message', :post => post, :photos => post.photos
- if defined?(current_user) && current_user && (post.author_id != current_user.person.id) && (post.public?) && !reshare?(post)
%span.reshare_action
= reshare_link(post)
- else - else
= t('.deleted') = t('.deleted')

View file

@ -93,6 +93,6 @@ Feature: public repost
And I should see "Bob" And I should see "Bob"
And I go to the home page And I go to the home page
And I should see "1 reshare" And I should see "1 Reshare"
Scenario: Can have text Scenario: Can have text