mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-25 06:48:01 -05:00
Parameterize SideBox link target attribute.
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user