Sha256: cb80100ccdfe4a12aca4f444cf60eef566bf1315d8d44d9049a4fc29b86c6bcb

Contents?: true

Size: 1.54 KB

Versions: 28

Compression:

Stored size: 1.54 KB

Contents

<% if activity.direct_object.is_a? Actor or activity.direct_object.respond_to? :actor %>
  <div class="subject">
    <%= 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)))%>
  </div>
  <div class="briefing">
    <%= raw t('notification.look', 
              :sender => link_to(truncate_name(activity.sender.name), polymorphic_url(activity.sender.subject))) %>
  </div>
<% else %>
  <div class="subject">
    <%= 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'),
                        polymorphic_url( activity.direct_object))) %>
  </div>
  <div class="briefing">
    <% if activity.direct_object.respond_to? :text %>
      "<%= link_to(sanitize(activity.direct_object.text.truncate(100, :separator =>' ')),
                  polymorphic_url( activity.direct_object))%>"
    <% else%>
      <%= link_to(t('notification.watch_it'),
                  polymorphic_url( activity.direct_object))%>
    <%end%>
  </div>
<% end %>

Version data entries

28 entries across 28 versions & 2 rubygems

Version Path
social_stream-0.14.1 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.10.5 app/views/notifications/activities/_like.html.erb
social_stream-0.14.0 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.10.4 app/views/notifications/activities/_like.html.erb
social_stream-0.13.3 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.10.3 app/views/notifications/activities/_like.html.erb
social_stream-0.13.2 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.10.2 app/views/notifications/activities/_like.html.erb
social_stream-0.13.1 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.10.1 app/views/notifications/activities/_like.html.erb
social_stream-0.13.0 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.10.0 app/views/notifications/activities/_like.html.erb
social_stream-0.12.14 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.36 app/views/notifications/activities/_like.html.erb
social_stream-0.12.13 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.35 app/views/notifications/activities/_like.html.erb
social_stream-0.12.12 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.34 app/views/notifications/activities/_like.html.erb
social_stream-0.12.11 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.33 app/views/notifications/activities/_like.html.erb