discourse/app/assets/javascripts/admin/templates/customize-robots-txt.hbs
Osama Sayegh 6515ff19e5
FEATURE: Allow customization of robots.txt (#7884)
* FEATURE: Allow customization of robots.txt

This allows admins to customize/override the content of the robots.txt
file at /admin/customize/robots. That page is not linked to anywhere in
the UI -- admins have to manually type the URL to access that page.

* use Ember.computed.not

* Jeff feedback

* Feedback

* Remove unused import
2019-07-15 20:47:44 +03:00

21 lines
610 B
Handlebars

<div class="robots-txt-edit">
<h3>{{i18n "admin.customize.robots.title"}}</h3>
<p>{{i18n "admin.customize.robots.warning"}}</p>
{{#if model.overridden}}
<div class="overridden">
{{i18n "admin.customize.robots.overridden"}}
</div>
{{/if}}
{{textarea
value=buffered.robots_txt
class="robots-txt-input"}}
{{#save-controls model=this action=(action "save") saved=saved saveDisabled=saveDisabled}}
{{d-button
class="btn-default"
disabled=resetDisbaled
icon="undo"
action=(action "reset")
label="admin.settings.reset"}}
{{/save-controls}}
</div>