{{ block profile_menu(route="profile") }}
{{ UserProfile.Username }}

{{ UserProfile.Username}}

{{UserProfile.GetRole()}}

{{ T("torrents_uploaded") }}:{{ NbTorrents }}

{{ TorrentUploadedSize := 0}} {{ range i, t := UserProfile.Torrents }} {{ torrent := t.ToJSON() }} {{ TorrentUploadedSize = TorrentUploadedSize + torrent.Filesize}} {{ end }}

{{ fileSize(TorrentUploadedSize, T)}} uploaded

{{if User.ID > 0 }} {{if !User.CurrentUserIdentical(UserProfile.ID) }} {{if !User.IsFollower(UserProfile)}} {{ T("follow")}}
{{else}} {{ T("unfollow")}}
{{end}} {{end}} {{end}}

{{ if User.ID > 0 && (User.CurrentUserIdentical(UserProfile.ID) || User.CurrentOrAdmin(UserProfile.ID)) }}
{{ T("torrents")}}

{{ else }}
{{ T("torrents")}}

{{ end }} {{if User.ID > 0 }} {{ if User.CurrentUserIdentical(UserProfile.ID) }} {{ T("my_notifications")}}
{{end}} {{if UserProfile.ID > 0 && User.CurrentOrAdmin(UserProfile.ID) }} {{ T("settings")}}
{{end}} {{end}}
{{end}}