mirror of
https://github.com/discourse/discourse.git
synced 2025-05-28 13:51:18 +08:00
UX: admins embedding page follows admin ux guideline (#30122)
Conversion of /admin/customize/embedding page to follow admin UX guidelines.
This commit is contained in:

committed by
GitHub

parent
02113fc22a
commit
407fa69778
@ -6,16 +6,15 @@ class Embedding < OpenStruct
|
||||
include HasErrors
|
||||
|
||||
def self.settings
|
||||
%i[
|
||||
embed_by_username
|
||||
embed_post_limit
|
||||
embed_title_scrubber
|
||||
embed_truncate
|
||||
embed_unlisted
|
||||
allowed_embed_selectors
|
||||
blocked_embed_selectors
|
||||
allowed_embed_classnames
|
||||
]
|
||||
posts_and_topics_settings | crawlers_settings
|
||||
end
|
||||
|
||||
def self.posts_and_topics_settings
|
||||
%i[embed_by_username embed_post_limit embed_title_scrubber embed_truncate embed_unlisted]
|
||||
end
|
||||
|
||||
def self.crawlers_settings
|
||||
%i[allowed_embed_selectors blocked_embed_selectors allowed_embed_classnames]
|
||||
end
|
||||
|
||||
def base_url
|
||||
|
Reference in New Issue
Block a user