Add key color to create subreddit page

Key color is now available on the create and edit subreddit pages.
This commit is contained in:
Florence Yeun
2016-01-19 18:07:32 -08:00
parent 4e7c1ca0b1
commit fc2841ad2d
2 changed files with 7 additions and 6 deletions

View File

@@ -2746,11 +2746,10 @@ class ApiController(RedditController):
'wikimode',
]
if sr:
if feature.is_enabled('mobile_settings'):
keyword_fields.append('key_color')
if feature.is_enabled('related_subreddits'):
keyword_fields.append('related_subreddits')
if feature.is_enabled('mobile_settings'):
keyword_fields.append('key_color')
if sr and feature.is_enabled('related_subreddits'):
keyword_fields.append('related_subreddits')
kw = {k: v for k, v in kw.iteritems() if k in keyword_fields}

View File

@@ -543,9 +543,10 @@ try participating in other communities on reddit for a little while first before
</%utils:line_field>
%endif
%if thing.site and feature.is_enabled('mobile_settings'):
%if feature.is_enabled('mobile_settings'):
<%utils:line_field title="${_('mobile look and feel')}" css_class="mobile">
<ul class="upload">
%if thing.site:
<li>
<p><label>${_('icon image')}</label> <span class="gray">${_('icon must be 256x256 pixels. PNG or JPG only.')}</span></p>
<%utils:image_upload post_target="/api/upload_sr_img"
@@ -583,6 +584,7 @@ try participating in other communities on reddit for a little while first before
<input type="hidden" name="upload_type" value="banner">
</%utils:image_upload>
</li>
%endif
<li>
<p><label>${_('color')}</label> <span class="gray">${_('used as a thematic color for your subreddit on mobile')}</span></p>
<ul class="colors">