{{ define "profile_menu" }}
{{ $.UserProfile.Username }}

{{ $.UserProfile.Username}}

{{GetRole $.UserProfile}}

{{if gt $.User.ID 0 }} {{if not (CurrentUserIdentical $.User $.UserProfile.ID) }} {{if not (IsFollower $.UserProfile $.User)}} {{ call $.T "follow"}}
{{else}} {{ call $.T "unfollow"}}
{{end}} {{end}} {{end}}

{{call $.T "torrents"}}
{{if gt $.User.ID 0 }} {{ if CurrentUserIdentical $.User $.UserProfile.ID }} {{ call $.T "my_notifications"}}
{{end}} {{if CurrentOrAdmin $.User $.UserProfile.ID }} {{call $.T "settings"}}
{{end}} {{end}}
{{end}}