mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
init activity features #4
This commit is contained in:
parent
c47c8ad83b
commit
ef84fefca3
27 changed files with 1492 additions and 143 deletions
12
templates/default/activity/event/torrent/add.html.twig
Normal file
12
templates/default/activity/event/torrent/add.html.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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">
|
||||
{{ 'added torrent' | trans }}
|
||||
</span>
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'added locales edition' | trans }}
|
||||
{% if torrent.locales.exist %}
|
||||
<a href="{{ path('torrent_locales_edit', { torrentId : torrent.id, torrentLocalesId : torrent.locales.id }) }}">
|
||||
#{{ torrent.locales.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.locales.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'approved locales edition' | trans }}
|
||||
{% if torrent.locales.exist %}
|
||||
<a href="{{ path('torrent_locales_edit', { torrentId : torrent.id, torrentLocalesId : torrent.locales.id }) }}">
|
||||
#{{ torrent.locales.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.locales.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'disapproved locales edition' | trans }}
|
||||
{% if torrent.locales.exist %}
|
||||
<a href="{{ path('torrent_locales_edit', { torrentId : torrent.id, torrentLocalesId : torrent.locales.id }) }}">
|
||||
#{{ torrent.locales.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.locales.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'deleted locales edition' | trans }}
|
||||
{% if torrent.locales.exist %}
|
||||
<a href="{{ path('torrent_locales_edit', { torrentId : torrent.id, torrentLocalesId : torrent.locales.id }) }}">
|
||||
#{{ torrent.locales.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.locales.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'added sensitive edition' | trans }}
|
||||
{% if torrent.sensitive.exist %}
|
||||
<a href="{{ path('torrent_sensitive_edit', { torrentId : torrent.id, torrentSensitiveId : torrent.sensitive.id }) }}">
|
||||
#{{ torrent.sensitive.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.sensitive.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'approved sensitive edition' | trans }}
|
||||
{% if torrent.sensitive.exist %}
|
||||
<a href="{{ path('torrent_sensitive_edit', { torrentId : torrent.id, torrentSensitiveId : torrent.sensitive.id }) }}">
|
||||
#{{ torrent.sensitive.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.sensitive.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'disapproved sensitive edition' | trans }}
|
||||
{% if torrent.sensitive.exist %}
|
||||
<a href="{{ path('torrent_sensitive_edit', { torrentId : torrent.id, torrentSensitiveId : torrent.sensitive.id }) }}">
|
||||
#{{ torrent.sensitive.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.sensitive.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<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>
|
||||
{{ 'deleted sensitive edition' | trans }}
|
||||
{% if torrent.sensitive.exist %}
|
||||
<a href="{{ path('torrent_sensitive_edit', { torrentId : torrent.id, torrentSensitiveId : torrent.sensitive.id }) }}">
|
||||
#{{ torrent.sensitive.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.sensitive.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
9
templates/default/activity/event/undefined.html.twig
Normal file
9
templates/default/activity/event/undefined.html.twig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<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">
|
||||
{{ 'undefined event' | trans }}
|
||||
</span>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
9
templates/default/activity/event/user/add.html.twig
Normal file
9
templates/default/activity/event/user/add.html.twig
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<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">
|
||||
{{ 'joined' | trans }} {{ name }}
|
||||
</span>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
12
templates/default/activity/event/user/approve/add.html.twig
Normal file
12
templates/default/activity/event/user/approve/add.html.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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">
|
||||
{{ 'approved by' | trans }}
|
||||
</span>
|
||||
<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>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<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">
|
||||
{{ 'disapproved by' | trans }}
|
||||
</span>
|
||||
<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>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<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-x-4-px">
|
||||
{{ 'grant 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 }}" />
|
||||
</a>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<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-x-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>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
12
templates/default/activity/event/user/star/add.html.twig
Normal file
12
templates/default/activity/event/user/star/add.html.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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">
|
||||
{{ 'add star to' | trans }}
|
||||
</span>
|
||||
<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>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
12
templates/default/activity/event/user/star/delete.html.twig
Normal file
12
templates/default/activity/event/user/star/delete.html.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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">
|
||||
{{ 'removed star from' | trans }}
|
||||
</span>
|
||||
<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>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
12
templates/default/activity/event/user/status/add.html.twig
Normal file
12
templates/default/activity/event/user/status/add.html.twig
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
<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-x-4-px">
|
||||
{{ 'enable user' | 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>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -0,0 +1,12 @@
|
|||
<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-x-4-px">
|
||||
{{ 'diable user' | 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>
|
||||
<div class="float-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
|
|
@ -1,23 +1,12 @@
|
|||
{% extends 'default/layout.html.twig' %}
|
||||
{% block title %}{{ 'Last activity'|trans }} - {{ name }}{% endblock %}
|
||||
{% block title %}{{ 'Activity' | trans }} - {{ name }}{% endblock %}
|
||||
{% block main_content %}
|
||||
{% for activity in activities %}
|
||||
<div class="padding-16-px margin-y-8-px border-radius-3-px background-color-night">
|
||||
<div class="row">
|
||||
<div class="column width-80">
|
||||
<a href="{{ path('user_info', { userId : activity.user.id }) }}">
|
||||
<img class="vertical-align-middle border-radius-50 border-color-default border-width-2-px margin-r-8-px"
|
||||
src="{{ activity.user.identicon }}"
|
||||
alt="{{ 'identicon'|trans }}" />
|
||||
</a>
|
||||
{% if activity.type == 'join' %}
|
||||
{{ 'joined'|trans }} {{ name }}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="column width-20 text-right padding-y-4-px">
|
||||
{{ activity.added }}
|
||||
</div>
|
||||
</div>
|
||||
{{ render(controller(
|
||||
'App\\Controller\\ActivityController::template',
|
||||
{ activity : activity }
|
||||
)) }}
|
||||
</div>
|
||||
{% endfor %}
|
||||
{% endblock %}
|
||||
Loading…
Add table
Add a link
Reference in a new issue