Skip to content

Commit

Permalink
set "id" attribute on both the <img> and the <a> tags
Browse files Browse the repository at this point in the history
  • Loading branch information
pmoor committed Feb 20, 2011
1 parent d9d6e0e commit 950bbe6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions user.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,13 @@ def get(self, user_name):
link = bool(int(self.request.get("link", 1)))
picture = picker.Pick(user_name, size)
if picture:
html = """<img src="%s" width="%d" height="%d"/>""" % (
html = """<img src="%s" width="%d" height="%d" id="rndpic-img"/>""" % (
picture.GetThumbnailUrl(),
picture.GetWidth(),
picture.GetHeight())

if link:
html = """<a href="%s" target="_top">%s</a>""" % (
html = """<a href="%s" target="_top" id="rndpic-a">%s</a>""" % (
picture.GetLink(),
html)
self.response.out.write("document.write('%s');" % html)
Expand Down

0 comments on commit 950bbe6

Please sign in to comment.