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

19 lines
681 B
Plaintext
Raw Normal View History

2014-11-26 14:24:52 +00:00
tabset
tab.active heading = t('layout.edit')
.offset10
- if defined?(ang_model)
2015-02-02 15:44:57 +00:00
= f.input :body, label: false, as: :text,
input_html: { rows: 10, id: "#{id}-body",
'ng-model' => "#{ctrl}.#{ang_model}", 'ng-value' => "#{ctrl}.#{ang_model}" }
- else
2015-02-02 15:44:57 +00:00
= f.input :body, label: false, as: :text,
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" ]