mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-14 18:52:05 +03:00
19 lines
789 B
Handlebars
19 lines
789 B
Handlebars
{{#if this.customTemplates}}
|
|
<div class="form-group for-select" data-test-custom-template-form>
|
|
<label for="author-list">Template</label>
|
|
<span class="gh-select {{if this.matchedSlugTemplate "disabled"}}">
|
|
<OneWaySelect @value={{this.selectedTemplate}}
|
|
@options={{this.customTemplates}}
|
|
@optionValuePath="filename"
|
|
@optionLabelPath="name"
|
|
@update={{action "selectTemplate"}}
|
|
@disabled={{this.matchedSlugTemplate}}
|
|
data-test-select="custom-template" />
|
|
{{svg-jar "arrow-down-small"}}
|
|
</span>
|
|
{{#if this.matchedSlugTemplate}}
|
|
<p>Post URL matches {{this.matchedSlugTemplate.filename}}</p>
|
|
{{/if}}
|
|
</div>
|
|
{{/if}}
|