mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 06:30:15 +08:00
27 lines
573 B
Handlebars
27 lines
573 B
Handlebars
<h3>{{title}}</h3>
|
|
<p class='description'>{{description}}</p>
|
|
|
|
{{#if markdown}}
|
|
{{pagedown-editor value=value}}
|
|
{{/if}}
|
|
{{#if plainText}}
|
|
{{textarea value=value class="plain"}}
|
|
{{/if}}
|
|
{{#if html}}
|
|
{{ace-editor content=value mode="html"}}
|
|
{{/if}}
|
|
{{#if css}}
|
|
{{ace-editor content=value mode="css"}}
|
|
{{/if}}
|
|
|
|
<div class='controls'>
|
|
<button class='btn' {{action "saveChanges"}} {{bind-attr disabled="saveDisabled"}}>
|
|
{{#if saving}}
|
|
{{i18n 'saving'}}
|
|
{{else}}
|
|
{{i18n 'save'}}
|
|
{{/if}}
|
|
</button>
|
|
{{#if saved}}{{i18n 'saved'}}{{/if}}
|
|
</div>
|