Back to Reddit

Subredditstylesheet

r2/r2/templates/subredditstylesheet.html

latest2.4 KB
Original Source

${_("stylesheet")}

${keep_space(thing.stylesheet_contents) or ''} ${_('reason for revision')} % if thing.site.prev_stylesheet: [${_("see previous versions")}](${add_sr() % endif

${_('save')} ${_('preview')}

${_("errors")}

${_("preview")}

| ${_("normal link")} | | | ${_("compressed link")} | | | ${_("link with thumbnail")} | | | ${_("stickied link")} | | | ${_("comment")} | | | ${_("gilded comment")} | |

%if thing.allow_image_upload:

${_("images")}

<%call expr="image_upload('/api/upload_sr_img', '', onchange='return file_changed(this)', label = _('image file'), ask_type=True)">
${_("new image name:")} ${error_field("BAD_CSS_NAME", "name")}
${_("(image names should consist of alphanumeric characters and '-' only)")} %call>

${_("Note: any changes to images here will be reflected immediately on reload and cannot be undone.")}

${make_li(prototype=True)} %for name, url in thing.images.iteritems(): ${make_li(name=name, img=url)} %endfor

%endif