implement activity RSS feed

This commit is contained in:
ghost 2023-10-13 23:06:20 +03:00
parent 60a5593446
commit 35b84546ff
58 changed files with 834 additions and 162 deletions

View file

@ -1,10 +1,10 @@
<div class="row">
<div class="column width-80">
<a href="{{ path('user_info', { userId : by.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ by.user.identicon }}" alt="{{ 'identicon' | trans }}" />
<a href="{{ path('user_info', { userId : to.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ to.user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
<span class="margin-l-4-px">
{{ 'grant moderator permissions to' | trans }}
<span class="margin-x-4-px">
{{ 'have granted moderator permissions to' | trans }}
</span>
<a href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />

View file

@ -0,0 +1,12 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have granted moderator permissions to user' | trans }}
#{{ to.user.id }}
</title>
<author>#{{ to.user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('user_info', { userId : to.user.id }) }}#activity-{{ id }}</guid>
<link>{{ url('user_info', { userId : to.user.id }) }}#activity</link>
</item>

View file

@ -1,14 +1,14 @@
<div class="row">
<div class="column width-80">
<a href="{{ path('user_info', { userId : by.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ by.user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
<span class="margin-l-4-px">
{{ 'remove moderator permissions from' | trans }}
</span>
<a href="{{ path('user_info', { userId : user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
<span class="margin-x-4-px">
{{ 'have removed moderator permissions from' | trans }}
</span>
<a href="{{ path('user_info', { userId : to.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ to.user.identicon }}" alt="{{ 'identicon' | trans }}" />
</a>
</div>
<div class="column width-20 text-right">
{{ added | format_ago }}

View file

@ -0,0 +1,12 @@
<item>
<title>
{{ 'User' | trans }}
#{{ user.id }}
{{ 'have removed moderator permissions from user' | trans }}
#{{ to.user.id }}
</title>
<author>#{{ to.user.id }}</author>
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
<guid>{{ url('user_info', { userId : to.user.id }) }}#activity-{{ id }}</guid>
<link>{{ url('user_info', { userId : to.user.id }) }}#activity</link>
</item>