mirror of
https://github.com/discourse/discourse.git
synced 2025-01-31 14:10:45 +08:00
Server side quote templates don't seem to be used?
This commit is contained in:
parent
d34334ecbe
commit
2e4d43364a
|
@ -1,2 +0,0 @@
|
||||||
NEEDS FIXING
|
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
<table cellspacing="0" cellpadding="0" style="border: 1px solid #eee; -webkit-border-radius: 10px;">
|
|
||||||
<tr>
|
|
||||||
<th style="text-align:left; background-color: #eee; padding: 5px">{{{avatarImg}}} {{username}}</th>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="padding: 10px; background-color: #f9f9f9">{{{quote}}}</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
|
@ -114,13 +114,6 @@ module PrettyText
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
ctx['quoteTemplate'] = File.read("#{app_root}/app/assets/javascripts/discourse/templates/quote.hbs")
|
|
||||||
ctx['quoteEmailTemplate'] = File.read("#{app_root}/lib/assets/quote_email.hbs")
|
|
||||||
ctx.eval("HANDLEBARS_TEMPLATES = {
|
|
||||||
'quote': Handlebars.compile(quoteTemplate),
|
|
||||||
'quote_email': Handlebars.compile(quoteEmailTemplate),
|
|
||||||
};")
|
|
||||||
|
|
||||||
ctx
|
ctx
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user