Sha256: 3e8abb03dcad9542fc683b3e2d0b097597d85e4881b10e595b94bd0842a25940

Contents?: true

Size: 1.28 KB

Versions: 3

Compression:

Stored size: 1.28 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 %>
    "<%= activity.direct_object.text.truncate(100, :separator =>' ')%>"
    <%= t('notification.all_text', :url => polymorphic_url(activity.direct_object))%>
  <% else%>
--><%= 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

3 entries across 3 versions & 2 rubygems

Version Path
social_stream-0.12.6 base/app/views/notifications/activities/_like.text.erb
social_stream-0.12.5 base/app/views/notifications/activities/_like.text.erb
social_stream-base-0.9.28 app/views/notifications/activities/_like.text.erb