add publisher link #11

This commit is contained in:
ghost 2023-10-09 01:49:50 +03:00
parent 4a6dd85c60
commit ffa59d6f82
2 changed files with 19 additions and 0 deletions

View File

@ -57,6 +57,15 @@ class TorrentController extends AbstractController
[ [
'id' => $torrent->getId(), 'id' => $torrent->getId(),
'added' => $torrent->getAdded(), 'added' => $torrent->getAdded(),
'user' =>
[
'id' => $torrent->getUserId(),
'identicon' => $userService->identicon(
$userService->get(
$torrent->getUserId()
)->getAddress()
),
],
'scrape' => 'scrape' =>
[ [
'seeders' => (int) $torrent->getSeeders(), 'seeders' => (int) $torrent->getSeeders(),

View File

@ -177,6 +177,16 @@
</td> </td>
</tr> </tr>
{% endif %} {% endif %}
<tr>
<td>
{{ 'Publisher'|trans }}
</td>
<td>
<a href="{{ path('user_info', { id : torrent.user.id }) }}">
<img class="border-radius-50 border-color-default vertical-align-middle" src="{{ torrent.user.identicon }}" alt="{{'identicon'|trans }}" />
</a>
</td>
</tr>
<tr> <tr>
<td colspan="2"> <td colspan="2">
<div class="padding-y-8-px border-bottom-default text-right"> <div class="padding-y-8-px border-bottom-default text-right">