mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-01 09:35:28 +00:00
implement torrent statuses management #28
This commit is contained in:
parent
3cbc6ea90f
commit
989f2f3311
64 changed files with 1051 additions and 282 deletions
|
|
@ -9,9 +9,11 @@
|
|||
{{ torrent.name }}
|
||||
</a>
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -11,7 +11,11 @@
|
|||
{{ torrent.name }}
|
||||
</a>
|
||||
{% else %}
|
||||
{% if torrent.sensitive == true %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -6,7 +6,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.sensitive == true %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -11,9 +11,11 @@
|
|||
{{ torrent.name }}
|
||||
</a>
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -6,7 +6,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.sensitive == true %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -14,9 +14,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -20,9 +20,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -8,9 +8,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -20,9 +20,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -8,9 +8,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -22,9 +22,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -8,9 +8,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -20,9 +20,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -8,9 +8,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -20,10 +20,12 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,12 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -20,10 +20,12 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,12 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -20,10 +20,12 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,12 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -20,10 +20,12 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -8,10 +8,12 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }}
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -12,9 +12,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -13,9 +13,11 @@
|
|||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -6,9 +6,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.approved == false %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true %}
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
|
|
@ -0,0 +1,30 @@
|
|||
<div class="row">
|
||||
<div class="column width-80">
|
||||
<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-l-4-px">
|
||||
{{ 'have enabled torrent' | trans }}
|
||||
</span>
|
||||
{% if session.user.moderator or session.user.owner %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
{% else %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="column width-20 text-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
</div>
|
||||
26
templates/default/activity/event/torrent/status/add.rss.twig
Normal file
26
templates/default/activity/event/torrent/status/add.rss.twig
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<item>
|
||||
<title>
|
||||
{{ 'User' | trans }}
|
||||
#{{ user.id }}
|
||||
{{ 'have enabled torrent' | trans }}
|
||||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</title>
|
||||
<author>#{{ user.id }}</author>
|
||||
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
|
||||
<guid>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity-{{ id }}</guid>
|
||||
<link>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity</link>
|
||||
</item>
|
||||
|
|
@ -0,0 +1,30 @@
|
|||
<div class="row">
|
||||
<div class="column width-80">
|
||||
<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-l-4-px">
|
||||
{{ 'have disabled torrent' | trans }}
|
||||
</span>
|
||||
{% if session.user.moderator or session.user.owner %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
{% else %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }}
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="column width-20 text-right">
|
||||
{{ added | format_ago }}
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -0,0 +1,26 @@
|
|||
<item>
|
||||
<title>
|
||||
{{ 'User' | trans }}
|
||||
#{{ user.id }}
|
||||
{{ 'have disabled torrent' | trans }}
|
||||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }}
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
</title>
|
||||
<author>#{{ user.id }}</author>
|
||||
<pubDate>{{ added | date('D, d M Y h:i:s O') }}</pubDate>
|
||||
<guid>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity-{{ id }}</guid>
|
||||
<link>{{ url('torrent_info', { torrentId : torrent.id }) }}#activity</link>
|
||||
</item>
|
||||
|
|
@ -6,7 +6,11 @@
|
|||
{{ torrent.name }}
|
||||
</a>
|
||||
{% else %}
|
||||
{% if torrent.sensitive == true %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
|
|
|
|||
|
|
@ -4,7 +4,11 @@
|
|||
{% if session.user.moderator or session.user.owner %}
|
||||
{{ torrent.name }}
|
||||
{% else %}
|
||||
{% if torrent.sensitive == true %}
|
||||
{% if torrent.status == false %}
|
||||
#{{ torrent.id }} ({{ 'disabled' | trans }})
|
||||
{% elseif torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% elseif torrent.sensitive == true and session.user.sensitive == true %}
|
||||
#{{ torrent.id }} ({{ 'sensitive' | trans }})
|
||||
{% else %}
|
||||
{{ torrent.name }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue