Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fix error when a link has flair_text but not flair_css_class.
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Hanks authored and spladug committed Apr 20, 2012
1 parent bccb2ff commit a058ae0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions r2/r2/templates/link.html
Expand Up @@ -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
Expand Down

0 comments on commit a058ae0

Please sign in to comment.