Permalink
Browse files

Add post-submitter body class.

  • Loading branch information...
1 parent bebbe7c commit 8131555ee4821a74943a94250094fe36ceee7704 @chromakode chromakode committed Nov 17, 2012
Showing with 4 additions and 0 deletions.
  1. +4 −0 r2/r2/lib/pages/pages.py
View
@@ -1075,6 +1075,10 @@ def rightbox(self):
def page_classes(self):
classes = Reddit.page_classes(self)
+
+ if c.user_is_loggedin and self.link.author == c.user:
+ classes.add("post-submitter")
+
time_ago = datetime.datetime.now(g.tz) - self.link._date
delta = datetime.timedelta
steps = [

0 comments on commit 8131555

Please sign in to comment.