Sha256: d73f9d166c1d9420927b6959b0226b910d37f88be539c0c5404b58b3f101ca2d

Contents?: true

Size: 1.75 KB

Versions: 5

Compression:

Stored size: 1.75 KB

Contents

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

<div class="notification">
</div>
<div class="sender_photo">
  <%= link_to image_tag(current_subject.logo.url(:actor),
  :title => current_subject.name, :alt => current_subject.name),
  current_subject %>
</div>
<div class="content_left">
  <div class="sender_name">
    <%#= link_to conversation.last_sender.name, conversation.last_sender.subject %>
  </div>
  <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?(current_subject) %>
    <%= link_to(image_tag('btn/btn_notification_delete.png', :alt => t('notification.read'), 
        :title => t('notification.read')), notification_path(notification, :page => params[:page], :read => "Read"),
        :method => :put, :remote => true) %>
  <% else%>
    <%= link_to(image_tag('btn/btn_notification_delete.png', :alt => t('notification.unread'), 
        :title => t('notification.unread')), notification_path(notification, :page => params[:page], :read => "Unread"),
        :method => :put, :remote => true) %>
  <% end%>
</div>
<div class="action">  
  <%= link_to(image_tag('btn/btn_notification_delete.png', :alt => "Delete", :title => "Delete"),
  notification_path(notification, :page => params[:page]),
  :confirm => 'Do you want to delete "' + notification.subject,
  :method => :delete, :remote => true) %>
</div>
<div class="clearfloat">
</div>
<% end %>

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
social_stream-base-0.5.2 app/views/notifications/_notification.html.erb
social_stream-base-0.5.1 app/views/notifications/_notification.html.erb
social_stream-base-0.5.0 app/views/notifications/_notification.html.erb
social_stream-0.4.6 app/views/notifications/_notification.html.erb
social_stream-0.4.5 app/views/notifications/_notification.html.erb