From e0b22e11bb47ed4a864947738ff1a1e551c389ca Mon Sep 17 00:00:00 2001 From: manson Date: Thu, 3 Jul 2014 05:51:37 +0800 Subject: [PATCH] Fix orbit_bar_bootstrap css path --- app/helpers/application_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 6a38fc8..5a29539 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -190,8 +190,10 @@ module ApplicationHelper end def page_stylesheets(page, edit=nil) + orbit_bar_bootstrap = asset_path 'orbit_bar_bootstrap' + orbit_bar_bootstrap = orbit_bar_bootstrap.include?('css') ? orbit_bar_bootstrap : orbit_bar_bootstrap+'.css' stylesheets = '' - stylesheets << "\n" + stylesheets << "\n" stylesheets << "\n" if page.design.css_reset # stylesheets << "\n" # stylesheets << "\n"