{% extends "admin/core/base.html" %} {% load foundation %} {% block title %}Publication Notifications{% endblock title %} {% block title-section %}Publication Notifications{% endblock %} {% block title-sub %}View readers and sent notifications.{% endblock %} {% block breadcrumbs %} {{ block.super }}
  • Manager
  • Cron
  • Publication Notifications
  • {% endblock %} {% block body %}

    Readers

    Readers recieve notifications when new articles are published in a journal. Note: Only users themselves can add and remove themselves from the Reader role.

    {% for reader in readers %} {% endfor %}
    ID Name
    {{ reader.pk }} {{ reader.full_name }}

    Sent Notifications

    Note: Reader notifications are {% if send_reader_notifications %}on{% else %}off{% endif %}. You can change that via the Settings interface.

    The notification email template can be changed via the Email Template interface

    {% for notification in reader_notifications %} {% endfor %}
    ID Date/Time Sent to Content
    {{ notification.pk }} {{ notification.date }} {% if notification.toaddress_set.count > 10 %} Sent to {{ notification.toaddress_set.count }} recipients {% else %} {% for to in notification.toaddress_set.all %} {{ to.email }}{% if not forloop.last %}, {% endif %} {% endfor %} {% endif %} {{ notification.description|safe }}
    {% for notification in reader_notifications %}

    {{ notification.pk }} Recipients

    {% for to in notification.toaddress_set.all %} {{ to.email }}{% if not forloop.last %}, {% endif %} {% endfor %}

    {% endfor %} {% endblock body %} {% block js %} {% include "admin/elements/datatables.html" with target="#readers" sort=0 order='asc' %} {% include "admin/elements/datatables.html" with target="#notifications" sort=1 order='desc' %} {% endblock js %}