discourse/app/assets/javascripts/admin/templates/site_content_edit.js.handlebars
Robin Ward 57d5355ce8 wat
2013-05-29 15:00:35 -04:00

36 lines
No EOL
718 B
Handlebars

{{#if loaded}}
<h3>{{title}}</h3>
<p class='description'>{{description}}</p>
{{#if markdown}}
{{pagedown value=model.content}}
{{/if}}
{{#if plainText}}
{{textarea value=model.content class="plain"}}
{{/if}}
{{#if html}}
{{aceEditor content=model.content mode="html"}}
{{/if}}
{{#if css}}
{{aceEditor content=model.content mode="css"}}
{{/if}}
<div class='controls'>
<button class='btn' {{action saveChanges}} {{bindAttr disabled="saveDisabled"}}>
{{#if saving}}
{{i18n saving}}
{{else}}
{{i18n save}}
{{/if}}
</button>
{{#if saved}}{{i18n saved}}{{/if}}
</div>
{{else}}
<div class='spinner'>{{i18n loading}}</div>
{{/if}}