Sha256: 85412b2fead72b136ba27f572e2273bf29de7c6bd4037d7da036c159d28a5783

Contents?: true

Size: 1.51 KB

Versions: 4

Compression:

Stored size: 1.51 KB

Contents

<%= div_for(notification, :class => read_class + ' conversation') do %>

<div class="notification"></div>
<div class="sender_photo">
  <%if notification.object.nil? %>
    <%= image_tag('logos/actor/user.png',:title => "unknown", :alt => "unknown")%>
  <%else%>
    <%= link_to image_tag(notification.object.sender.logo.url(:actor),
        :title => notification.object.sender.name, :alt => notification.object.sender.name),
        notification.object.sender.subject %>
  <%end%>
</div>
<div class="content_left">
  <div class="date">
    <%= t('time.ago', :time => time_ago_in_words(notification.created_at)) %>
  </div>
</div>
<div class="content_right">
  <div class="subject">
    <%= raw decode_notification notification.subject,notification.object %>
  </div>
  <div class="briefing">
    <%= raw decode_notification notification.body, notification.object %>
  </div>
  <div class="clearfloat">
  </div>
</div>
<div class="action">  
  <% if notification.is_unread?(@actor) %>
    <%= link_to(image_tag('btn/btn_notification_read.png', :alt => t('notification.read'), 
        :title => t('notification.read')), notification_path(notification, :page => params[:page], :read => "Read"),
        :method => :put, :remote => true) %>
  <% end%>
  
  <%= link_to(image_tag('btn/btn_notification_delete.png', :alt => "Delete", :title => "Delete"),
  notification_path(notification, :page => params[:page]),
  :confirm => t('notification.destroy_sure'),
  :method => :delete, :remote => true) %>

</div>
<div class="clearfloat">
</div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
social_stream-base-0.7.0 app/views/notifications/_notification.html.erb
social_stream-base-0.6.8 app/views/notifications/_notification.html.erb
social_stream-base-0.6.6 app/views/notifications/_notification.html.erb
social_stream-base-0.6.5 app/views/notifications/_notification.html.erb