discourse/app/assets/javascripts/admin/templates/site_content_edit.js.handlebars
Robin Ward 4981525047 REFACTOR: Fixes poor class hierarchy for listing topics
- Upgrades Ember to latest
- Fixes a bunch of bugs with page titles and missing "active" states
2014-01-18 19:26:24 +01:00

26 lines
624 B
Handlebars

<h3>{{model.title}}</h3>
<p class='description'>{{model.description}}</p>
{{#if model.markdown}}
{{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}} {{bind-attr disabled="saveDisabled"}}>
{{#if saving}}
{{i18n saving}}
{{else}}
{{i18n save}}
{{/if}}
</button>
{{#if saved}}{{i18n saved}}{{/if}}
</div>