{% extends "sora/layout.html" %} {% load i18n %} {% import "sora/macros.html" as macros with context %} {% block title %}{% if user.alerts -%} {{ macros.page_title(title=get_title(),parent=_('Your Notifications')) }} {%- else -%} {{ macros.page_title(title=get_title()) }} {%- endif %}{% endblock %} {% block content %}
{% trans %}Looks like you don't have any notifications... yet.{% endtrans %}
{% endif %} {% endblock %} {% macro get_title() -%} {% if new_alerts -%} {% trans count=new_alerts -%} You have one new alert {%- pluralize -%} You have {{ count }} new alerts {%- endtrans %} {%- else -%} {% trans %}Your Notifications{% endtrans %} {%- endif %} {%- endmacro %} {% macro alerts_list(title, alerts) %}{{ title }} | {% trans %}Date{% endtrans %} |
---|---|
{% if alert.new %}{% trans %}New{% endtrans %} {% endif %}{{ (_(alert.message) % alert.vars())|safe }} | {{ alert.date|reltimesince }} |