mirror of
https://github.com/reddit-archive/reddit.git
synced 2026-04-27 03:00:12 -04:00
Add key color to create subreddit page
Key color is now available on the create and edit subreddit pages.
This commit is contained in:
@@ -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}
|
||||
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user