mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-25 18:28:31 +08:00
1. Use `this.` instead of `{{action}}` where applicable
2. Use `{{fn}}` instead of `@actionParam` where applicable
3. Use non-`@` versions of class/type/tabindex/aria-controls/aria-expanded
4. Remove `btn` class (it's added automatically to all DButtons)
5. Remove `type="button"` (it's the default)
6. Use `concat-class` helper
24 lines
No EOL
670 B
Handlebars
Vendored
24 lines
No EOL
670 B
Handlebars
Vendored
<div class="robots-txt-edit">
|
|
<h3>{{i18n "admin.customize.robots.title"}}</h3>
|
|
<p>{{i18n "admin.customize.robots.warning"}}</p>
|
|
{{#if this.model.overridden}}
|
|
<div class="overridden">
|
|
{{i18n "admin.customize.robots.overridden"}}
|
|
</div>
|
|
{{/if}}
|
|
<Textarea @value={{this.buffered.robots_txt}} class="robots-txt-input" />
|
|
<SaveControls
|
|
@model={{this}}
|
|
@action={{action "save"}}
|
|
@saved={{this.saved}}
|
|
@saveDisabled={{this.saveDisabled}}
|
|
>
|
|
<DButton
|
|
@disabled={{this.resetDisabled}}
|
|
@icon="undo"
|
|
@action={{this.reset}}
|
|
@label="admin.settings.reset"
|
|
class="btn-default"
|
|
/>
|
|
</SaveControls>
|
|
</div> |