Update gold text and links on profile page

This commit is contained in:
Chad Birch
2013-03-27 15:02:06 -06:00
committed by Neil Williams
parent 66ee04a977
commit cb4d231896

View File

@@ -1545,14 +1545,15 @@ class ProfileBar(Templated):
if user._id != c.user._id:
self.goldlink = "/gold?goldtype=gift&recipient=" + user.name
self.giftmsg = _("buy %(user)s a month of reddit gold" %
dict(user=user.name))
self.giftmsg = _("give reddit gold to %(user)s to show "
"your appreciation") % {'user': user.name}
elif running_out_of_gold:
self.goldlink = "/gold"
self.goldlink = "/gold/about"
self.giftmsg = _("renew your reddit gold")
elif not c.user.gold:
self.goldlink = "/gold"
self.giftmsg = _("treat yourself to reddit gold")
self.goldlink = "/gold/about"
self.giftmsg = _("get extra features and help support reddit "
"with a reddit gold subscription")
self.my_fullname = c.user._fullname
self.is_friend = self.user._id in c.user.friends