Make SideBox.show_cover take effect properly.

It appears this functionality broke when the cover functionality was
switched over to the "login-reqired" class.
This commit is contained in:
Max Goodman
2011-12-01 14:23:53 -08:00
parent 6e27323e8a
commit dc5e74ea05

View File

@@ -25,14 +25,14 @@
<div class="sidebox ${thing.css_class}">
<div class="morelink">
${plain_link(thing.title, thing.link, _sr_path=thing.sr_path,
_class='login-required', nocname=thing.nocname)}
_class='login-required' if thing.show_cover else None, nocname=thing.nocname)}
<div class="nub"> </div>
</div>
%if thing.subtitles:
<div class="spacer">
${plain_link('', thing.link, _sr_path=thing.sr_path,
_class='login-required', nocname=thing.nocname)}
_class='login-required' if thing.show_cover else None, nocname=thing.nocname)}
%for subtitle in thing.subtitles:
<div class="subtitle">${subtitle}</div>
%endfor