Fix Questions#new view
[shapado:shapado.git] / app / views / questions / _editor.html.haml
1
2 -if local_assigns[:markdown] && !current_group.wysiwyg_editor
3   =markdown(@answer.body)
4   = f.label :body, t(:body, :scope => "activerecord.attributes.question"), :class => "label", :for =>"editor"
5 -if current_group.wysiwyg_editor
6   = f.text_area :body, :class => "text_area", :id => "wysiwyg_editor", :value => markdown(@question.body)
7 -else
8   = f.text_area :body, :class => "text_area", :id => "markdown_editor"
9
10   #markdown_preview.markdown
11     =markdown(@question.body)