mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-26 23:39:11 -05:00
Fix /r/<subreddit> in mailbox
This commit is contained in:
@@ -56,16 +56,16 @@
|
||||
<%
|
||||
author = WrappedUser(thing.author, thing.attribs, thing).render()
|
||||
if thing.sr_id:
|
||||
subreddit = '<a href="%s.compact">%s</a>' % (thing.subreddit.path,
|
||||
thing.subreddit.name)
|
||||
subreddit = ' <a href="%s.compact">%s</a> ' % \
|
||||
(thing.subreddit.path, thing.subreddit.path)
|
||||
if not thing.dest:
|
||||
thing.dest = subreddit
|
||||
author = thing.updated_author % dict(author=author, subreddit=subreddit)
|
||||
|
||||
taglinetext = thing.taglinetext % dict(when=thing.timesince,
|
||||
author=u"<b>%s</b>" % author,
|
||||
dest=u"<b>%s</b>" % thing.dest)
|
||||
taglinetext = taglinetext.replace(' ', ' ')
|
||||
taglinetext = thing.taglinetext.replace(' ', ' ')
|
||||
taglinetext = taglinetext % dict(when=thing.timesince,
|
||||
author=u"<b>%s</b>" % author,
|
||||
dest=u"<b>%s</b>" % thing.dest)
|
||||
%>
|
||||
<div class="tagline">
|
||||
${unsafe(taglinetext)}
|
||||
|
||||
@@ -53,16 +53,16 @@ ${parent.thing_css_class(what)} ${"new" if thing.new else ""} ${"was-comment" if
|
||||
<%
|
||||
author = WrappedUser(thing.author, thing.attribs, thing).render()
|
||||
if thing.sr_id:
|
||||
subreddit = '<a href="%s">%s</a>' % (thing.subreddit.path,
|
||||
thing.subreddit.path)
|
||||
subreddit = ' <a href="%s">%s</a> ' % (thing.subreddit.path,
|
||||
thing.subreddit.path)
|
||||
if not thing.dest:
|
||||
thing.dest = subreddit
|
||||
author = thing.updated_author % dict(author=author, subreddit=subreddit)
|
||||
|
||||
taglinetext = thing.taglinetext % dict(when=thing.timesince,
|
||||
author=u"<b>%s</b>" % author,
|
||||
dest=u"<b>%s</b>" % thing.dest)
|
||||
taglinetext = taglinetext.replace(' ', ' ')
|
||||
taglinetext = thing.taglinetext.replace(' ', ' ')
|
||||
taglinetext = taglinetext % dict(when=thing.timesince,
|
||||
author=u"<b>%s</b>" % author,
|
||||
dest=u"<b>%s</b>" % thing.dest)
|
||||
%>
|
||||
${unsafe(taglinetext)}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user