From fa1ee731af514194c6d6205542b0ac213e69c166 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Thu, 26 Jan 2012 17:04:03 -0800 Subject: [PATCH] DG MS; made an imageUrl handlebars helper for assets served through handlebars templates. --- app/views/layouts/application.html.haml | 3 +++ app/views/templates/comment.handlebars | 2 +- app/views/templates/header.handlebars | 10 +++++----- public/javascripts/app/app.js | 11 +++++++++++ 4 files changed, 20 insertions(+), 6 deletions(-) diff --git a/app/views/layouts/application.html.haml b/app/views/layouts/application.html.haml index 5ecf6bc58..ee0e2386f 100644 --- a/app/views/layouts/application.html.haml +++ b/app/views/layouts/application.html.haml @@ -87,6 +87,9 @@ Diaspora.I18n.loadLocale(#{get_javascript_strings_for(I18n.locale).to_json}, "#{I18n.locale}"); Diaspora.Page = "#{params[:controller].camelcase}#{params[:action].camelcase}"; + :javascript + app.baseImageUrl("#{ENV['ASSET_HOST']}") + - if current_user :javascript app.user( diff --git a/app/views/templates/comment.handlebars b/app/views/templates/comment.handlebars index 48d832b01..c878118e6 100644 --- a/app/views/templates/comment.handlebars +++ b/app/views/templates/comment.handlebars @@ -2,7 +2,7 @@ {{#if ownComment}} - Deletelabel + Deletelabel {{/if}} diff --git a/app/views/templates/header.handlebars b/app/views/templates/header.handlebars index 105a5e89b..445f59f54 100644 --- a/app/views/templates/header.handlebars +++ b/app/views/templates/header.handlebars @@ -1,7 +1,7 @@
- +