49 lines
2.7 KiB
Twig
49 lines
2.7 KiB
Twig
|
{% extends 'master.twig' %}
|
||
|
{% from 'macros.twig' import torrent_listing_entry %}
|
||
|
|
||
|
{% set title = profile_user.name %}
|
||
|
|
||
|
{% set profile_ratio = profile_user.calculateRatio %}
|
||
|
|
||
|
{% block content %}
|
||
|
<div class="profile" style="--user-colour: {{ profile_user.colour }}" id="p{{ profile_user.id }}">
|
||
|
<div class="profile-header" id="p{{ profile_user.id }}h">
|
||
|
<div class="avatar profile-header-avatar"><img src="{{ globals.site_info.avatarUrl(profile_user, 200) }}" alt="" width="100" height="100"></div>
|
||
|
<div class="profile-header-info">
|
||
|
<div class="profile-header-info-name"><span>{{ profile_user.name }}</span></div>
|
||
|
<div class="profile-header-info-flashii"><a href="{{ globals.site_info.profileUrl(profile_user) }}">View full profile on {{ globals.site_info.mainSiteName }}</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
|
||
|
<div class="profile-transfer" id="p{{ profile_user.id }}r">
|
||
|
<a href="/profile/{{ profile_user.name }}/history">Ratio <span style="color: {{ seria_ratio_colour(profile_ratio) }};">{{ profile_ratio|number_format(3) }}</span></a>
|
||
|
<a href="/profile/{{ profile_user.name }}/history?filter=uploaded"><span style="color: green;">Uploaded</span> {{ profile_user.bytesUploaded|format_filesize }}</a>
|
||
|
<a href="/profile/{{ profile_user.name }}/history?filter=downloaded"><span style="color: red;">Downloaded</span> {{ profile_user.bytesDownloaded|format_filesize }}</a>
|
||
|
<a href="/profile/{{ profile_user.name }}/history?filter=uploading"><span style="color: green;">Seeding</span> {{ profile_uploading|number_format }}</a>
|
||
|
<a href="/profile/{{ profile_user.name }}/history?filter=downloading"><span style="color: red;">Leeching</span> {{ profile_downloading|number_format }}</a>
|
||
|
</div>
|
||
|
|
||
|
{% if profile_submissions is not empty %}
|
||
|
<div class="profile-submissions" id="p{{ profile_user.id }}s">
|
||
|
<div class="profile-submissions-header">Latest Submissions</div>
|
||
|
|
||
|
{% for torrent in profile_submissions %}
|
||
|
{{ torrent_listing_entry(torrent, 'profile-submission') }}
|
||
|
{% endfor %}
|
||
|
|
||
|
<div class="profile-submissions-full"><a href="/available?name={{ profile_user.name }}">View all submissions</a></div>
|
||
|
</div>
|
||
|
{% endif %}
|
||
|
|
||
|
|
||
|
<div class="profile-history" id="p{{ profile_user.id }}t">
|
||
|
<div class="profile-history-header">Latest Transfers</div>
|
||
|
|
||
|
todo: keep track of this
|
||
|
|
||
|
<div class="profile-history-full"><a href="/profile/{{ profile_user.name }}/history">View full transfer history</a></div>
|
||
|
</div>
|
||
|
</div>
|
||
|
{% endblock %}
|