The user template is modified to include a link to profile edits.
The 'if user.id == g.user.id' conditional is used to make sure that a user will get to edit their own profile and not anyone else's.