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.12.10 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.32 app/views/notifications/activities/_like.html.erb
social_stream-0.12.9 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.31 app/views/notifications/activities/_like.html.erb
social_stream-0.12.8 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.30 app/views/notifications/activities/_like.html.erb
social_stream-0.12.7 base/app/views/notifications/activities/_like.html.erb
social_stream-base-0.9.29 app/views/notifications/activities/_like.html.erb