Sha256: b4375dd6d443f3eba4f818c0383bad9bc2841b4384925e15e0fe21e079f60431

Contents?: true

Size: 1.21 KB

Versions: 12

Compression:

Stored size: 1.21 KB

Contents

<% if activity.direct_object.is_a? Actor or activity.direct_object.respond_to? :actor %>
  <%= raw t('notification.fan', 
        :sender => truncate_name(activity.sender.name),
        :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 => truncate_name(activity.sender.name),
            :whose => t('notification.whose.'+ activity.receiver.subject.class.to_s.underscore,
                      :receiver => truncate_name(activity.receiver.name)),
            :thing => t(activity.direct_object.class.to_s.underscore+'.name')) %>

  <% if activity.direct_object.respond_to? :text %>
    "<%= sanitize(activity.direct_object.text.truncate(100, :separator =>' '))%>"
  <%= raw t('notification.all_text', :url => polymorphic_url(activity.direct_object))%>
  <% else%>
--><%= raw t('notification.watch', :url => polymorphic_url( activity.direct_object))%>
  <%end%>  
<% end %>

<%= raw t('notification.look', 
          :sender => truncate_name(activity.sender.name)) %>: <%=polymorphic_url(activity.sender.subject)%>

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
social_stream-0.14.1 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.10.5 app/views/notifications/activities/_like.text.erb
social_stream-0.14.0 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.10.4 app/views/notifications/activities/_like.text.erb
social_stream-0.13.3 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.10.3 app/views/notifications/activities/_like.text.erb
social_stream-0.13.2 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.10.2 app/views/notifications/activities/_like.text.erb
social_stream-0.13.1 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.10.1 app/views/notifications/activities/_like.text.erb
social_stream-0.13.0 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.10.0 app/views/notifications/activities/_like.text.erb