mirror of
https://github.com/discourse/discourse.git
synced 2026-07-29 15:54:48 -05:00
Revert "Remove RawDivView and use regular handlebars"
This reverts commit e7f349ff0f.
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
</div>
|
||||
</div>
|
||||
{{/unless}}
|
||||
<div class='cooked'>{{{cooked}}}</div>
|
||||
{{view Discourse.RawDivView class="cooked" contentBinding="cooked"}}
|
||||
{{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}}
|
||||
</div>
|
||||
{{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}}
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
// used to render a div with unescaped contents
|
||||
|
||||
Discourse.RawDivView = Ember.View.extend({
|
||||
|
||||
shouldRerender: Discourse.View.renderIfChanged('content'),
|
||||
|
||||
render: function(buffer) {
|
||||
buffer.push(this.get('content'));
|
||||
}
|
||||
|
||||
});
|
||||
Reference in New Issue
Block a user