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