mirror of
https://github.com/discourse/discourse.git
synced 2024-12-24 06:33:53 +08:00
6515ff19e5
* 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
21 lines
610 B
Handlebars
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>
|