2015-11-24 05:45:05 +08:00
|
|
|
<div class="edit-site-text">
|
|
|
|
<div class="title">
|
2022-07-06 01:41:31 +08:00
|
|
|
<h3>{{this.siteText.id}}</h3>
|
2015-11-24 05:45:05 +08:00
|
|
|
</div>
|
2015-08-08 02:05:08 +08:00
|
|
|
|
2021-01-19 01:53:45 +08:00
|
|
|
<div class="title">
|
2022-07-06 01:41:31 +08:00
|
|
|
<h4>{{i18n "admin.site_text.locale"}} {{this.localeFullName}}</h4>
|
2021-01-19 01:53:45 +08:00
|
|
|
</div>
|
|
|
|
|
2023-07-19 23:06:13 +08:00
|
|
|
{{#if this.isOutdated}}
|
|
|
|
<div class="outdated">
|
|
|
|
<h4>{{i18n "admin.site_text.outdated.title"}}</h4>
|
|
|
|
<p>{{i18n "admin.site_text.outdated.description"}}</p>
|
|
|
|
<h5>{{i18n "admin.site_text.outdated.old_default"}}</h5>
|
|
|
|
<p>{{this.siteText.old_default}}</p>
|
|
|
|
<h5>{{i18n "admin.site_text.outdated.new_default"}}</h5>
|
|
|
|
<p>{{this.siteText.new_default}}</p>
|
|
|
|
<DButton
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{this.dismissOutdated}}
|
2023-07-19 23:06:13 +08:00
|
|
|
@label="admin.site_text.outdated.dismiss"
|
2023-08-31 17:49:35 +08:00
|
|
|
class="btn-default"
|
2023-07-19 23:06:13 +08:00
|
|
|
/>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<ExpandingTextArea
|
|
|
|
@value={{this.buffered.value}}
|
|
|
|
@rows="1"
|
|
|
|
@class="site-text-value"
|
|
|
|
/>
|
2015-11-24 05:45:05 +08:00
|
|
|
|
2023-06-28 19:03:04 +08:00
|
|
|
{{#if this.siteText.has_interpolation_keys}}
|
|
|
|
<div class="desc">{{i18n "admin.site_text.interpolation_keys"}}
|
|
|
|
{{this.interpolationKeys}}
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<SaveControls
|
|
|
|
@model={{this.siteText}}
|
|
|
|
@action={{action "saveChanges"}}
|
|
|
|
@saved={{this.saved}}
|
|
|
|
@saveDisabled={{this.saveDisabled}}
|
|
|
|
>
|
|
|
|
{{#if this.siteText.can_revert}}
|
2022-06-30 18:30:50 +08:00
|
|
|
<DButton
|
2023-08-31 17:49:35 +08:00
|
|
|
@action={{this.revertChanges}}
|
2022-06-30 18:30:50 +08:00
|
|
|
@label="admin.site_text.revert"
|
2023-08-31 17:49:35 +08:00
|
|
|
class="revert-site-text"
|
2022-06-30 18:30:50 +08:00
|
|
|
/>
|
2015-11-24 05:45:05 +08:00
|
|
|
{{/if}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</SaveControls>
|
2015-11-24 05:45:05 +08:00
|
|
|
|
2022-07-06 01:41:31 +08:00
|
|
|
<LinkTo
|
|
|
|
@route="adminSiteText.index"
|
|
|
|
@query={{hash locale=this.locale}}
|
|
|
|
class="go-back"
|
|
|
|
>
|
2017-07-27 04:25:09 +08:00
|
|
|
{{d-icon "arrow-left"}}
|
2015-11-24 05:45:05 +08:00
|
|
|
{{i18n "admin.site_text.go_back"}}
|
2022-06-30 18:30:50 +08:00
|
|
|
</LinkTo>
|
2015-11-24 05:45:05 +08:00
|
|
|
</div>
|