Don't hide scores on the 'details' page when hide_score is set

This commit is contained in:
ketralnis
2008-11-06 12:03:14 -08:00
parent c783b295eb
commit 4b2a9d9132

View File

@@ -25,14 +25,12 @@
<table class="details">
<tr><th>${_("submitted on")}</th>
<td>${thing.a._date.strftime(thing.datefmt)}</td></tr>
%if not thing.a.hide_score:
<tr><th>${ungettext('point', 'points', 5)}</th>
<td>${thing.a.score}</td></tr>
<tr><th>${_("up votes")}</th>
<td>${thing.a.upvotes}</td></tr>
<tr><th>${_("down votes")}</th>
<td>${thing.a.downvotes}</td></tr>
%endif
<tr><th>${ungettext('point', 'points', 5)}</th>
<td>${thing.a.score}</td></tr>
<tr><th>${_("up votes")}</th>
<td>${thing.a.upvotes}</td></tr>
<tr><th>${_("down votes")}</th>
<td>${thing.a.downvotes}</td></tr>
%if c.user_is_admin:
<%include file="adminlinkinfo.html"/>
%endif