From 2e4d43364a9a44191309f80dad0b805b9cfe6b24 Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Wed, 6 May 2015 11:20:30 -0400 Subject: [PATCH] Server side quote templates don't seem to be used? --- app/assets/javascripts/discourse/templates/quote.hbs | 2 -- lib/assets/quote_email.hbs | 8 -------- lib/pretty_text.rb | 7 ------- 3 files changed, 17 deletions(-) delete mode 100644 app/assets/javascripts/discourse/templates/quote.hbs delete mode 100644 lib/assets/quote_email.hbs diff --git a/app/assets/javascripts/discourse/templates/quote.hbs b/app/assets/javascripts/discourse/templates/quote.hbs deleted file mode 100644 index 8224e293c..000000000 --- a/app/assets/javascripts/discourse/templates/quote.hbs +++ /dev/null @@ -1,2 +0,0 @@ -NEEDS FIXING - diff --git a/lib/assets/quote_email.hbs b/lib/assets/quote_email.hbs deleted file mode 100644 index 61cda0296..000000000 --- a/lib/assets/quote_email.hbs +++ /dev/null @@ -1,8 +0,0 @@ - - - - - - - -
{{{avatarImg}}} {{username}}
{{{quote}}}
diff --git a/lib/pretty_text.rb b/lib/pretty_text.rb index 4ef815099..de418dc18 100644 --- a/lib/pretty_text.rb +++ b/lib/pretty_text.rb @@ -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