templates/notifications.html.twig line 1

Open in your IDE?
  1. {% if notifications is defined %}
  2.     {% for notification in notifications %}
  3.         {% if not notification.isRead %}
  4.             <div class="dropdown-item notify-item border-bottom" data-notification-id="{{ notification.id }}">
  5.                 <div class="notify-icon bg-primary"><i class="uil uil-comment-message"></i></div>
  6.                 <p class="notify-details">
  7.                     {{ notification.content }}
  8.                     <small class="text-muted">
  9.                         {{ notification.timeAgo }}
  10. {#                        <time class="timeago" datetime="{{ notification.createdAt|date('Y-m-d H:i') }}"></time>#}
  11.                     </small>
  12.                     {% if notification.entityType == 'invoice' %}
  13.                         <a href="{{ path('client_offer_details', {'id': notification.entityId}) }}#privateMessages" class="badge badge-success">Dołącz fakturę</a>
  14.                         <a href="{{ path('client_offer_details', {'id': notification.entityId}) }}" class="badge badge-success">Podgląd oferty</a>
  15.                     {% elseif notification.entityType == 'offer' %}
  16.                         <a href="{{ path('client_'~ notification.entityType ~'_details', {'id': notification.entityId}) }}{% if notification.contentId is not null %}#private-message-{{ notification.contentId }}{% endif %}" class="badge badge-success">Zobacz</a>
  17.                     {% elseif notification.entityType == 'inquiry' %}
  18.                         <a href="{{ path('client_'~ notification.entityType ~'_details', {'id': notification.entityId}) }}{% if notification.contentId is not null %}#showDiscussionPopup{% endif %}" class="badge badge-success">Zobacz</a>
  19.                     {% elseif notification.entityType == 'private_message' %}
  20.                         <a href="{{ path('client_private_message_customer_index', {'id': notification.entityId}) }}" class="badge badge-success">Zobacz</a>
  21.                     {% endif %}
  22.                     <a class="loader-button btn btn-primary [ read-notification ] text-white"
  23.                        data-action="/notification/read/{{ notification.id }}"
  24.                        style="animation: blinker 1s linear infinite;"
  25.                        data-toggle="tooltip" data-html="true" data-placement="top" data-original-title="Pamiętaj, aby oznaczać wiadomość jako przeczytaną, dzięki temu będziesz mieć porządek oraz zniknie czerwona koperta informująca o nowej wiadomości"
  26.                     >
  27.                         <i class="fa fa-spinner fa-spin d-none loader-button-mark"></i> Oznacz jako przeczytane <i class="fa fa-envelope" style="color: red;"></i>
  28.                     </a>
  29.                     <div class="text-center">
  30.                         {% if notification.make is defined and notification.model is defined %}
  31.                             <a class="badge text-dark" style="font-size: 14px;">{{ notification.make }} {{ notification.model }}</a>
  32.                         {% endif %}
  33.                         {% if notification.make2 is defined and notification.model2 is defined %}
  34.                             <a class="badge text-dark" style="font-size: 14px;">{{ notification.make2 }} {{ notification.model2 }}</a>
  35.                         {% endif %}
  36.                     </div>
  37.                     <br>
  38.                     {% if notification.entityType == "inquiry" or notification.entityType == "offer" %}
  39.                         <div class="board-box">
  40.                             <div class="license-plate plate-small" style="max-width: 40%">
  41.                                 <div class="blue-stripe">
  42.                                     <span class="stars">*</span>
  43.                                     <span class="PL">|</span>
  44.                                 </div>
  45.                                 <div class="license-plate-number">
  46.                                     {% if notification.registrationNumber is defined %}
  47.                                         {{ notification.registrationNumber }}
  48.                                     {% endif %}
  49.                                     {% if notification.registrationNumber2 is defined %}
  50.                                         {{ notification.registrationNumber2 }}
  51.                                     {% endif %}
  52.                                 </div>
  53.                             </div>
  54.                         </div>
  55.                     {% endif %}
  56.                 </p>
  57.             </div>
  58.         {% endif %}
  59.     {% endfor %}
  60. {% endif %}