Sha256: 2087c9edde5d74c66de5536c9a70f0bc76088296208e269d80ae65e354f7c1ee

Contents?: true

Size: 1.17 KB

Versions: 51

Compression:

Stored size: 1.17 KB

Contents

<% if activity.direct_object.acts_as_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

51 entries across 51 versions & 4 rubygems

Version Path
social_stream-0.21.3 base/app/views/notifications/activities/_like.text.erb
social_stream-0.21.2 base/app/views/notifications/activities/_like.text.erb
social_stream-0.21.1 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.16.1 app/views/notifications/activities/_like.text.erb
social_stream-0.21.0 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.16.0 app/views/notifications/activities/_like.text.erb
social_stream-0.20.2 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.15.2 app/views/notifications/activities/_like.text.erb
social_stream-0.20.1 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.15.1 app/views/notifications/activities/_like.text.erb
social_stream-0.20.0 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.15.0 app/views/notifications/activities/_like.text.erb
social_stream-0.19.3 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.14.3 app/views/notifications/activities/_like.text.erb
social_stream-0.19.2 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.14.2 app/views/notifications/activities/_like.text.erb
social_stream-0.19.1 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.14.1 app/views/notifications/activities/_like.text.erb
vkhater-social_stream-0.16.3.3 base/app/views/notifications/activities/_like.text.erb
vkhater-social_stream-base-0.11.2 app/views/notifications/activities/_like.text.erb