{{ import "layouts/partials/helpers/csrf" }} {{ block profile_menu(route="profile") }}
{{ UserProfile.Username }}

{{ UserProfile.Username}}

{{ if UserProfile.GetRole() != "" }}

{{T(UserProfile.GetRole())}}

{{end}}

{{T("followers")}}: {{len(UserProfile.Followers)}}
{{ T("torrents_uploaded") }}:{{ NbTorrents[0] }}
{{T("size")}}: {{fileSize(NbTorrents[1], T, false)}}

{{if UserProfile.ID > 0 && !User.CurrentUserIdentical(UserProfile.ID) }} {{if User.ID > 0 }} {{if !User.IsFollower(UserProfile.ID)}} {{ T("follow")}} {{else}} {{ T("unfollow")}} {{end}} {{else}} {{T("follow")}} {{end}} {{end}} {{ if User.ID > 0 && (User.CurrentUserIdentical(UserProfile.ID) || User.CurrentOrAdmin(UserProfile.ID)) }} {{ else }} {{end}}
{{ T("torrents")}}
RSS
{{if User.ID > 0 }} {{ if User.CurrentUserIdentical(UserProfile.ID) }} {{ T("my_notifications")}} {{end}} {{if UserProfile.ID > 0}} {{ if User.CurrentOrAdmin(UserProfile.ID) }} {{ T("settings")}} {{else if User.IsJanitor() && !UserProfile.IsJanitor() }}
{{ yield csrf_field()}}
{{end}} {{end}} {{end}}
{{ if User.ID != UserProfile.ID }} {{end}}
{{end}}