mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -05:00
Merge pull request #3848 from gschlager/patch-2
Remove example CSS selectors from locale file
This commit is contained in:
commit
b9437936ab
4 changed files with 4 additions and 11 deletions
|
@ -6,11 +6,6 @@ export default Ember.Component.extend({
|
|||
@computed('field')
|
||||
inputId(field) { return field.dasherize(); },
|
||||
|
||||
@computed('placeholder')
|
||||
placeholderValue(placeholder) {
|
||||
return placeholder ? I18n.t(placeholder) : null;
|
||||
},
|
||||
|
||||
@computed('field')
|
||||
translationKey(field) { return `admin.embedding.${field}`; },
|
||||
|
||||
|
@ -21,7 +16,7 @@ export default Ember.Component.extend({
|
|||
checked: {
|
||||
get(value) { return !!value; },
|
||||
set(value) {
|
||||
this.set('value', value);
|
||||
this.set('value', value);
|
||||
return value;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
</label>
|
||||
{{else}}
|
||||
<label for={{inputId}}>{{i18n translationKey}}</label>
|
||||
{{input value=value id=inputId placeholder=placeholderValue}}
|
||||
{{input value=value id=inputId placeholder=placeholder}}
|
||||
{{/if}}
|
||||
|
||||
<div class='clearfix'></div>
|
||||
|
|
|
@ -48,11 +48,11 @@
|
|||
|
||||
{{embedding-setting field="embed_whitelist_selector"
|
||||
value=embedding.embed_whitelist_selector
|
||||
placeholder="admin.embedding.whitelist_example"}}
|
||||
placeholder="article, #story, .post"}}
|
||||
|
||||
{{embedding-setting field="embed_blacklist_selector"
|
||||
value=embedding.embed_blacklist_selector
|
||||
placeholder="admin.embedding.blacklist_example"}}
|
||||
placeholder=".ad-unit, header"}}
|
||||
</div>
|
||||
|
||||
<div class='embedding-secondary'>
|
||||
|
|
|
@ -2607,9 +2607,7 @@ en:
|
|||
embed_username_key_from_feed: "Key to pull discourse username from feed"
|
||||
embed_truncate: "Truncate the embedded posts"
|
||||
embed_whitelist_selector: "CSS selector for elements that are allowed in embeds"
|
||||
whitelist_example: "article, #story, .post"
|
||||
embed_blacklist_selector: "CSS selector for elements that are removed from embeds"
|
||||
blacklist_example: ".ad-unit, header"
|
||||
feed_polling_enabled: "Import posts via RSS/ATOM"
|
||||
feed_polling_url: "URL of RSS/ATOM feed to crawl"
|
||||
save: "Save Embedding Settings"
|
||||
|
|
Loading…
Reference in a new issue