mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-01-27 07:48:16 -05:00
Add flair template column headers and bug fixes.
This commit is contained in:
@@ -2559,8 +2559,8 @@ class FlairSelector(CachedTemplate):
|
||||
position = getattr(c.site, 'flair_position', 'right')
|
||||
|
||||
attr_pattern = 'flair_%s_%%s' % c.site._id
|
||||
text = getattr(c.user, attr_pattern % 'text')
|
||||
css_class = getattr(c.user, attr_pattern % 'css_class')
|
||||
text = getattr(c.user, attr_pattern % 'text', '')
|
||||
css_class = getattr(c.user, attr_pattern % 'css_class', '')
|
||||
|
||||
ids = FlairTemplateBySubredditIndex.get_template_ids(c.site._id)
|
||||
# TODO(intortus): Maintain sorting.
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
|
||||
<h2>${_("select flair")}</h2>
|
||||
<ul>
|
||||
%if c.site.flair_self_assign_enabled:
|
||||
%if thing.choices and c.site.flair_self_assign_enabled:
|
||||
%for choice in thing.choices:
|
||||
<%
|
||||
li_class = 'flairsample-%s' % thing.position
|
||||
@@ -34,8 +34,6 @@
|
||||
</li>
|
||||
%endfor
|
||||
%else:
|
||||
<li class="error">
|
||||
${_("flair selection unavailable")}
|
||||
</li>
|
||||
<li class="error">${_("flair selection unavailable")}</li>
|
||||
%endif
|
||||
</ul>
|
||||
|
||||
Reference in New Issue
Block a user