rosa-build/app/views/projects/comments/_body.html.slim

19 lines
626 B
Plaintext
Raw Normal View History

2014-11-26 14:24:52 +00:00
tabset
tab heading = t('layout.edit')
.offset10
- if defined?(ang_model)
= f.input :body, label: false,
input_html: { rows: 10, id: "#{id}-body",
'ng-model' => ang_model, 'ng-value' => ang_model }
- else
= f.input :body, label: false,
input_html: { rows: 10, id: "#{id}-body" }
2014-11-26 14:24:52 +00:00
tab[ heading = t('layout.preview')
select = "#{ctrl}.previewBody('#{id}')" ]
2014-11-26 14:24:52 +00:00
.offset10
i.fa.fa-spinner.fa-spin.fa-lg ng-show = "#{ctrl}.processing"
2014-11-26 14:24:52 +00:00
div[ ng-bind-html = "#{ctrl}.preview_body"
ng-show = "!#{ctrl}.processing" ]