Sha256: e57308e1796d5a91668b1480a49119dc9347249b880d7177f7b706a8e948a82f

Contents?: true

Size: 937 Bytes

Versions: 25

Compression:

Stored size: 937 Bytes

Contents

<% if activity.direct_object.acts_as_actor? %>

    <%= raw t('notification.fan', 
          :sender => link_to(truncate_name(activity.sender.name), polymorphic_url(activity.sender.subject)),
          :whose => t('notification.whose.'+ activity.receiver.subject.class.to_s.underscore,
                    :receiver => truncate_name(activity.receiver.name)))%>

<% else %>

    <%= raw t('notification.like.'+ activity.receiver.subject.class.to_s.underscore, 
              :sender => link_to(truncate_name(activity.sender.name), polymorphic_url(activity.sender.subject)),
              :whose => t('notification.whose.'+ activity.receiver.subject.class.to_s.underscore,
                        :receiver => truncate_name(activity.receiver.name)),
              :thing => link_to(t(activity.direct_object.class.to_s.underscore+'.name'),
                        notification_url_of( activity.direct_object, @notification))) %>

<% end %>

Version data entries

25 entries across 25 versions & 2 rubygems

Version Path
social_stream-2.2.2 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.2.2 app/views/notifications/activities/_like.html.erb
social_stream-2.2.1 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.2.1 app/views/notifications/activities/_like.html.erb
social_stream-2.2.0 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.2.0 app/views/notifications/activities/_like.html.erb
social_stream-2.1.1 base/app/views/notifications/activities/_like.html.erb
social_stream-2.1.0 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.1.0 app/views/notifications/activities/_like.html.erb
social_stream-2.0.4 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.0.4 app/views/notifications/activities/_like.html.erb
social_stream-2.0.3 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.0.3 app/views/notifications/activities/_like.html.erb
social_stream-2.0.2 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.0.2 app/views/notifications/activities/_like.html.erb
social_stream-2.0.1 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.0.1 app/views/notifications/activities/_like.html.erb
social_stream-2.0.0 base/app/views/notifications/activities/_like.html.erb
social_stream-base-2.0.0 app/views/notifications/activities/_like.html.erb
social_stream-2.0.0.beta3 base/app/views/notifications/activities/_like.html.erb