Sha256: 4bc4574c7ae234bec9f304c63b792e8608d0980973de43a04dde6f87a8b88581

Contents?: true

Size: 1.43 KB

Versions: 11

Compression:

Stored size: 1.43 KB

Contents

<div class="notification_wrapper">
  <div class="notification_header">
    <h1>Notifications to <%= @target.printable_target_name %> <%= link_to open_all_notifications_path_for(@target, @index_options), method: :post, remote: true do %><span class="notification_count"><span class="<%= 'unopened' if @target.has_unopened_notifications?(@index_options) %>"><%= @target.unopened_notification_count(@index_options) %></span></span><% end %></h1>
  </div>
  <div class="notifications">
    <% if @index_options[:with_group_members] %>
      <%= render_notification @notifications, fallback: :default_without_grouping, with_group_members: true %>
    <% else %>
      <%= render_notification @notifications, fallback: :default %>
      <%#= render_notification @notifications, fallback: :text %>
    <% end %>
  </div>
</div>

<%#= render_notifications_of @target, fallback: :default, index_content: :with_attributes %>
<%#= render_notifications_of @target, fallback: :default, index_content: :unopened_with_attributes, reverse: true %>
<%#= render_notifications_of @target, fallback: :default_without_grouping, index_content: :with_attributes, with_group_members: true %>

<style>
  .notification_wrapper .notification_header h1 span span{
    color: #fff;
    background-color: #e5e5e5;
    border-radius: 4px;
    font-size: 12px;
    padding: 4px 8px;
  }
  .notification_wrapper .notification_header h1 span span.unopened{
    background-color: #f87880;
  }
</style>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
activity_notification-1.5.1 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.5.0 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.4.4 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.4.3 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.4.2 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.4.1 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.4.0 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.3.0 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.2.1 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.2.0 app/views/activity_notification/notifications/default/index.html.erb
activity_notification-1.1.0 app/views/activity_notification/notifications/default/index.html.erb