Server side quote templates don't seem to be used?

This commit is contained in:
Robin Ward 2015-05-06 11:20:30 -04:00
parent d34334ecbe
commit 2e4d43364a
3 changed files with 0 additions and 17 deletions

View File

@ -1,2 +0,0 @@
NEEDS FIXING

View File

@ -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>

View File

@ -114,13 +114,6 @@ module PrettyText
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
end