mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 17:45:31 +00:00
implement activity RSS feed
This commit is contained in:
parent
60a5593446
commit
35b84546ff
58 changed files with 834 additions and 162 deletions
|
|
@ -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 }}" />
|
||||
|
|
|
|||
12
templates/default/activity/event/user/moderator/add.rss.twig
Normal file
12
templates/default/activity/event/user/moderator/add.rss.twig
Normal 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>
|
||||
|
|
@ -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 }}
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue