mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +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
|
|
@ -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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue