2013-06-05 12:40:06 -04:00
|
|
|
|
2013-06-05 11:01:20 -04:00
|
|
|
<h3>{{model.title}}</h3>
|
|
|
|
<p class='description'>{{model.description}}</p>
|
2013-04-04 12:59:44 -04:00
|
|
|
|
2013-06-05 11:01:20 -04:00
|
|
|
{{#if model.markdown}}
|
2013-05-29 15:00:35 -04:00
|
|
|
{{pagedown value=model.content}}
|
2013-04-04 12:59:44 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2013-06-05 11:01:20 -04:00
|
|
|
{{#if model.plainText}}
|
2013-05-20 15:27:58 -04:00
|
|
|
{{textarea value=model.content class="plain"}}
|
2013-04-04 12:59:44 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2013-06-05 11:01:20 -04:00
|
|
|
{{#if model.html}}
|
2013-05-29 14:08:00 -04:00
|
|
|
{{aceEditor content=model.content mode="html"}}
|
2013-04-04 12:59:44 -04:00
|
|
|
{{/if}}
|
|
|
|
|
2013-06-05 11:01:20 -04:00
|
|
|
{{#if model.css}}
|
2013-05-29 14:08:00 -04:00
|
|
|
{{aceEditor content=model.content mode="css"}}
|
2013-04-04 12:59:44 -04: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>
|