discourse/app/assets/javascripts/admin/templates/site_content_edit.js.handlebars

36 lines
754 B
Handlebars
Raw Normal View History

{{#if loaded}}
<h3>{{model.title}}</h3>
<p class='description'>{{model.description}}</p>
{{#if model.markdown}}
2013-05-30 03:00:35 +08:00
{{pagedown value=model.content}}
{{/if}}
{{#if model.plainText}}
{{textarea value=model.content class="plain"}}
{{/if}}
{{#if model.html}}
{{aceEditor content=model.content mode="html"}}
{{/if}}
{{#if model.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}}