Attempt to add link in photos to return to profile

I doubt I did this correctly for I don't know HAML. But this was an attempt (Line 69) to add a link in the photos page of a profile to go back to the profile instead of hitting the "Back" button in the browser.