mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-03-31 17:15:38 +00:00
add poster event support #18
This commit is contained in:
parent
bd5191e894
commit
706ea40eec
12 changed files with 681 additions and 14 deletions
|
|
@ -0,0 +1,39 @@
|
|||
<div class="row">
|
||||
<div class="column width-80">
|
||||
<a class="margin-r-4-px" 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>
|
||||
{{ 'have approved poster edition' | trans }}
|
||||
{% if torrent.poster.exist %}
|
||||
<a href="{{ path('torrent_poster_edit', { torrentId : torrent.id, torrentPosterId : torrent.poster.id }) }}">
|
||||
#{{ torrent.poster.id }}
|
||||
</a>
|
||||
{% else %}
|
||||
#{{ torrent.poster.id }}
|
||||
{% endif %}
|
||||
{{ 'for torrent' | trans }}
|
||||
{% if session.user.moderator or session.user.owner %}
|
||||
<a href="{{ path('torrent_info', { torrentId : torrent.id }) }}">
|
||||
{{ torrent.name }}
|
||||
</a>
|
||||
{% if torrent.approved == false %}
|
||||
#{{ torrent.id }} ({{ 'waiting for approve' | trans }})
|
||||
{% endif %}
|
||||
{% 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 }}
|
||||
{% 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