point-tools/templates/Telegram/user_subscribers_updated_notification.md.twig

19 lines
564 B
Twig
Raw Permalink Normal View History

{# @var subscribed \App\Entity\User[] #}
{# @var unsubscribed \App\Entity\User[] #}
*Subscribers list changed:*
{% if subscribed|length > 0 %}
New subscribers:
{% for subscriber in subscribed %}
[@{{ subscriber.login }}]({{ subscriber.login|point_user_url }})
{% endfor %}
{% endif %}
{% if unsubscribed|length > 0 %}
Lost subscribers:
{% for subscriber in unsubscribed %}
[@{{ subscriber.login }}]({{ subscriber.login|point_user_url }})
{% endfor %}
{% endif %}
See full subscribers history on [Point Tools]({{ url('user_show', {'login': user.login}) }}) site.