Parameterize SideBox link target attribute.

This commit is contained in:
Max Goodman
2013-11-15 03:18:24 -07:00
parent b557e1297e
commit ba55a6e68f
2 changed files with 4 additions and 3 deletions

View File

@@ -833,8 +833,8 @@ class SideBox(CachedTemplate):
"""
def __init__(self, title, link=None, css_class='', subtitles = [],
show_cover = False, nocname=False, sr_path = False,
disabled=False, show_icon=True):
CachedTemplate.__init__(self, link = link, target = '_top',
disabled=False, show_icon=True, target='_top'):
CachedTemplate.__init__(self, link = link, target = target,
title = title, css_class = css_class,
sr_path = sr_path, subtitles = subtitles,
show_cover = show_cover, nocname=nocname,

View File

@@ -25,7 +25,8 @@
<div class="sidebox ${thing.css_class}${' disabled' if thing.disabled else ''}">
<div class="morelink">
${plain_link(thing.title, thing.link, _sr_path=thing.sr_path,
_class='login-required' if thing.show_cover else None, nocname=thing.nocname)}
_class='login-required' if thing.show_cover else None, nocname=thing.nocname,
target=thing.target)}
<div class="nub"> </div>
</div>