Sha256: f820a4c21a87be420adab18d858d36d543ab89e6fde1ad9db5af0b29614d9fe0

Contents?: true

Size: 1.7 KB

Versions: 7

Compression:

Stored size: 1.7 KB

Contents

<div class="empty-notifications callout secondary <%= "hide" if notifications.any? %>">
  <p><%= t("decidim.notifications.no_notifications") %></p>
</div>
<div id="notifications">
  <div class="mb-s text-right">
    <% if notifications.any? %>
      <%= link_to(
        t("mark_all_as_read", scope: "layouts.decidim.notifications_dashboard"),
        read_all_notifications_path,
        class: "button title-action__action hollow mark-all-as-read-button",
        method: :delete,
        data: { disable: true },
        remote: true
      ) %>
    <% end %>
  </div>

  <% notifications.select(&:resource).each do |notification| %>
    <div class="card card--widget">
      <ul class="card-data">
        <li class="card-data__item">
          <div class="card__link text-center">
            <%= resource_icon notification.resource, class: "icon--large" %>
            <span class="text-medium mt-xs"><%= notification.created_at.strftime("%a %e") %></span>
          </div>
        </li>
        <li class="card-data__item card-data__item--expand absolutes">
          <div class="mr-s">
            <span class="text-small"><%= notification.event_class.constantize.model_name.human %></span>
            <br />
            <span>
              <%= notification.event_class_instance.notification_title %>
            </span>
          </div>
          <div class="right center mr-s">
            <%= link_to notification, remote: true, method: :delete, class: "mark-as-read-button" do %>
              <%= icon "circle-x", class: "card__link" %>
            <% end %>
          </div>
        </li>
      </ul>
    </div>
  <% end %>
</div>

<%= javascript_include_tag "decidim/notifications" %>

<%= decidim_paginate notifications %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-core-0.13.1 app/cells/decidim/notifications/show.erb
decidim-core-0.12.2 app/cells/decidim/notifications/show.erb
decidim-core-0.13.0 app/cells/decidim/notifications/show.erb
decidim-core-0.12.1 app/cells/decidim/notifications/show.erb
decidim-core-0.13.0.pre1 app/cells/decidim/notifications/show.erb
decidim-core-0.12.0 app/cells/decidim/notifications/show.erb
decidim-core-0.12.0.pre app/cells/decidim/notifications/show.erb