Sha256: e306cd97eb2bdf0968cfb060b47dbeb37b1c984999972fb236d3da49a2762fc8

Contents?: true

Size: 1.46 KB

Versions: 3

Compression:

Stored size: 1.46 KB

Contents

<li>
  <div>
  	<%= notification.notifier.present? ? notification.notifier.printable_name : 'Someone' %>
    <% if notification.group_member_exists? %>
       <%= " and other #{notification.group_member_count} people" %>
    <% end %>
    notified you of <%= notification.notifiable.printable_name %>
  	<%= "in #{notification.group.printable_name}" if notification.group.present? %>
  </div>
  <div>
    <%= notification.opened? ? "Opened" : "Unopened" %>
  </div>
  <div>
    <%= link_to "Move", move_notification_path_for(notification) %>
  </div>
  <% if notification.unopened? %>
    <div>
      <%= link_to "Open and move (GET)", move_notification_path_for(notification, open: true) %>
    </div>
    <div>
      <%= link_to "Open and move (POST)", open_notification_path_for(notification, move: true), method: :post %>
    </div>
    <div>
      <%= link_to "Open", open_notification_path_for(notification, filter: params[:filter], limit: params[:limit]), method: :post %>
    </div>
    <div>
      <%= link_to "Open (Ajax)", open_notification_path_for(notification, filter: params[:filter], limit: params[:limit]), method: :post, remote: true %>
    </div>
  <% end %>
  <div>
    <%= link_to "Destroy", notification_path_for(notification, filter: params[:filter], limit: params[:limit]), method: :delete %>
  </div>
  <div>
    <%= link_to "Destroy (Ajax)", notification_path_for(notification, filter: params[:filter], limit: params[:limit]), method: :delete, remote: true %>
  </div>
</li>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activity_notification-0.0.10 app/views/activity_notification/notifications/default/_default.html.erb
activity_notification-0.0.9 app/views/activity_notification/notifications/default/_default.html.erb
activity_notification-0.0.8 app/views/activity_notification/notifications/default/_default.html.erb