mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-28 08:17:58 -05:00
Add extra_stylesheets knob to Reddit.
This provides an easy way for plugins to add extra separate stylesheets to the site.
This commit is contained in:
committed by
Neil Williams
parent
18bc298483
commit
ef51a2496f
@@ -130,6 +130,7 @@ class Reddit(Templated):
|
||||
content_id = None
|
||||
css_class = None
|
||||
extra_page_classes = None
|
||||
extra_stylesheets = []
|
||||
|
||||
def __init__(self, space_compress = True, nav_menus = None, loginbox = True,
|
||||
infotext = '', content = None, short_description='', title = '', robots = None,
|
||||
|
||||
@@ -97,6 +97,10 @@
|
||||
<![endif]-->
|
||||
|
||||
${adminbar_stylesheet()}
|
||||
|
||||
%for extra_stylesheet in getattr(thing, 'extra_stylesheets', ()):
|
||||
${less_stylesheet(extra_stylesheet)}
|
||||
%endfor
|
||||
</%def>
|
||||
|
||||
<%def name="javascript()">
|
||||
|
||||
Reference in New Issue
Block a user