mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Revert "Remove RawDivView and use regular handlebars"
This reverts commit e7f349ff0f.
This commit is contained in:
@@ -47,7 +47,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
<div class='cooked'>{{{cooked}}}</div>
|
{{view Discourse.RawDivView class="cooked" contentBinding="cooked"}}
|
||||||
{{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}}
|
{{view Discourse.PostMenuView postBinding="this" postViewBinding="view"}}
|
||||||
</div>
|
</div>
|
||||||
{{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}}
|
{{view Discourse.RepliesView contentBinding="replies" postViewBinding="view"}}
|
||||||
|
|||||||
11
app/assets/javascripts/discourse/views/raw_div_view.js
Normal file
11
app/assets/javascripts/discourse/views/raw_div_view.js
Normal file
@@ -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