Adds a constant, SVG_PLACEHOLDER, to site_config.rb (#11001)

This commit is contained in:
Julianna Tetreault 2020-10-21 13:28:02 -06:00 committed by GitHub
parent 60b18d1a80
commit 0b2fb08e32
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,7 @@
module Constants
module SiteConfig
IMAGE_PLACEHOLDER = "https://url/image.png".freeze
SVG_PLACEHOLDER = "<svg ...></svg>".freeze
DETAILS = {
allow_email_password_registration: {
@ -155,7 +156,7 @@ module Constants
},
left_navbar_svg_icon: {
description: "The SVG icon used to expand the left navbar navigation menu. Should be a max of 24x24px.",
placeholder: "<svg ...></svg>"
placeholder: SVG_PLACEHOLDER
},
logo_png: {
description: "Minimum 1024px, used for PWA etc.",
@ -163,7 +164,7 @@ module Constants
},
logo_svg: {
description: "Used as the SVG logo of the community",
placeholder: "<svg ...></svg>"
placeholder: SVG_PLACEHOLDER
},
main_social_image: {
description: "Used as the main image in social networks and OpenGraph",
@ -252,7 +253,7 @@ module Constants
},
right_navbar_svg_icon: {
description: "The SVG icon used to expand the right navbar navigation menu. Should be a max of 24x24px.",
placeholder: "<svg ...></svg>"
placeholder: SVG_PLACEHOLDER
},
secondary_logo_url: {
description: "Used as the secondary logo",