mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 20:36:39 +08:00
Revert "Remove RawDivView and use regular handlebars"
This reverts commit e7f349ff0f
.
This commit is contained in:
parent
df3a4c05cd
commit
fc25da09e3
|
@ -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'));
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user