{% 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 }}
{% trans %}Commited by{% endtrans %} {{ commit.owner.username }} {% trans %}in{% endtrans %} {{ commit.repo.owner.username }}/{{ commit.repo.name }}
{% elif notification.notification.data["type"] == "post" %} {% set post = db.session.get(Post, notification.notification.data["post"]) %}{{ post.subject }}
{% trans %}Posted by{% endtrans %} {{ post.owner.username }} {% trans %}in{% endtrans %} {{ post.repo.owner.username }}/{{ post.repo.name }}
{% endif %}