mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-24 22:38:09 -05:00
Fix error when a link has flair_text but not flair_css_class.
This commit is contained in:
committed by
Neil Williams
parent
bccb2ff1a4
commit
a058ae02f4
@@ -79,9 +79,10 @@
|
||||
</%def>
|
||||
|
||||
<%def name="flair()">
|
||||
%if c.user.pref_show_link_flair and (thing.flair_text or thing.flair_css_class):
|
||||
<% css = thing.flair_css_class or '' %>
|
||||
%if c.user.pref_show_link_flair and (thing.flair_text or css):
|
||||
## TODO: clean this up
|
||||
<span class="linkflair ${' '.join('linkflair-' + c for c in thing.flair_css_class.split())}">
|
||||
<span class="linkflair ${' '.join('linkflair-' + c for c in css.split())}">
|
||||
${thing.flair_text}
|
||||
</span>
|
||||
%endif
|
||||
|
||||
Reference in New Issue
Block a user