mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 00:07:57 -05:00
Add "[score hidden]" markers to alternate views
This commit is contained in:
committed by
Neil Williams
parent
341ad93d4e
commit
ed6e60bab4
@@ -61,7 +61,12 @@
|
||||
<div class="tagline">
|
||||
${WrappedUser(thing.author, thing.attribs, thing,
|
||||
gray = collapse).render()} 
|
||||
${score(thing, thing.likes, tag='span')} 
|
||||
%if thing.score_hidden:
|
||||
[${_("score hidden")}]
|
||||
%else:
|
||||
${score(thing, thing.likes, tag='span')}
|
||||
%endif
|
||||
 
|
||||
## thing.timesince is a cache stub
|
||||
${unsafe(_("%(timeago)s ago") % dict(timeago=thing.timesince))}
|
||||
% if thing.gilded_message:
|
||||
|
||||
@@ -52,7 +52,11 @@
|
||||
<a href="http://${get_domain()}/user/${thing.author.name}">
|
||||
<b>${thing.author.name}</b></a> 
|
||||
<span id="score_${thing._fullname}">
|
||||
${thing.score} ${ungettext("point", "points", thing.score)}
|
||||
%if thing.score_hidden:
|
||||
[${_("score hidden")}]
|
||||
%else:
|
||||
${thing.score} ${ungettext("point", "points", thing.score)}
|
||||
%endif
|
||||
</span> 
|
||||
${thing.timesince}
|
||||
 <a href="${add_sr(thing.permalink)}">permalink</a>
|
||||
|
||||
@@ -49,7 +49,13 @@
|
||||
|
||||
<p class="byline">
|
||||
${WrappedUser(thing.author, thing.attribs, thing, gray = collapse).render()}
|
||||
|<span class="score">${thing.score} ${ungettext("point", "points", thing.score)} </span>
|
||||
|<span class="score">
|
||||
%if thing.score_hidden:
|
||||
[${_("score hidden")}]
|
||||
%else:
|
||||
${thing.score} ${ungettext("point", "points", thing.score)}
|
||||
%endif
|
||||
</span>
|
||||
${_("written")} ${thing.timesince} ${_("ago")}
|
||||
</p>
|
||||
${unsafe(safemarkdown(thing.body, nofollow=thing.nofollow))}
|
||||
|
||||
Reference in New Issue
Block a user