{% extends "default.html" %} {% block title %} {% trans %}Notifications{% endtrans %} {% endblock %} {% block breadcrumbs %}
  • {% trans %}Notifications{% endtrans %}
  • {% endblock %} {% block content %} {% if notifications %}
    {% for notification in notifications %}
    {{ notification.notification.timestamp | strftime("%A, %e %B %Y, %H:%M:%S") }} {% if notification.notification.data["type"] == "welcome" %}

    {% trans %}Welcome{% endtrans %}

    {% elif notification.notification.data["type"] == "commit" %} {% set commit = db.session.get(Commit, notification.notification.data["repo"] + "/" + notification.notification.data["commit"]) %}

    {{ commit.message | split("\n\n", 1) | first }}

    Commited by {{ commit.owner.username }} in {{ commit.repo.owner.username }}/{{ commit.repo.name }}

    {% endif %}
    {% if notification.attention_level %} {% else %} {% endif %}
    {% endfor %} {% else %}

    {% trans %}When you get notifications, they'll be shown here.{% endtrans %}

    {% endif %}
    {% endblock %}