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

11 lines
563 B
Twig
Raw Permalink Normal View History

*Last global subscription events:*
2017-01-04 22:36:30 +00:00
{% set subscription = constant('\\App\\Entity\\SubscriptionEvent::ACTION_SUBSCRIBE') %}
{# @var event \App\Entity\SubscriptionEvent #}
2017-01-04 22:36:30 +00:00
{% for event in events %}
{% set sub_login = event.subscriber.login %}
{% set author_login = event.author.login %}
{{ event.date|date('d M H:i') }} [@{{ sub_login }}]({{ sub_login|point_user_url }}){% if subscription == event.action %} -> {% else %} X {% endif %}[@{{ author_login }}]({{ author_login|point_user_url }})
2017-01-04 22:36:30 +00:00
{% endfor %}
See more events on [Point Tools]({{ url('index') }}) site.