{{extend 'default/_base.html'}} {{if avatar != None:}} {{pass}}

{{=profile.username + "'s profile"}}

{{if auth.is_logged_in():}} {{if profile.username != auth.user.username:}} {{if ("friend",auth.user.username) in requests:}}

friend request pending

{{pass}} {{if ("friend",auth.user.username) not in requests and auth.user.username not in friends:}}

Add as friend

{{pass}}

{{=profile.username+" has "+str(len(friends))+" friend(s) ("}}view all)

{{pass}} {{if profile.username == auth.user.username:}}

{{="You have "+str(len(friends))+" friend(s) ("}}view all)

{{pass}} {{pass}}

{{=profile.username + "'s submissions ("}}view all):

{{for row in images:}} {{for image in row:}} {{pass}}

{{=image.title}}
{{pass}}

{{=profile.username + "'s favorites("}}view all):

{{for row in favorites:}} {{for image in row:}} {{pass}}

{{=image.title}}
{{pass}}