Fix orbit_bar_bootstrap css path

This commit is contained in:
manson 2014-07-03 05:51:37 +08:00 committed by spen
parent 6dedfbe7fc
commit 5897503316
1 changed files with 3 additions and 1 deletions

View File

@ -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 << "<link href='#{asset_path 'orbit_bar_bootstrap'}.css' rel='stylesheet' type='text/css' />\n"
stylesheets << "<link href='#{orbit_bar_bootstrap}' rel='stylesheet' type='text/css' />\n"
stylesheets << "<link href='#{page.design.css_reset.file.url}' rel='stylesheet' type='text/css' />\n" if page.design.css_reset
# stylesheets << "<link href='#{asset_path 'banner_nav.css'}' rel='stylesheet' type='text/css' />\n"
# stylesheets << "<link href='#{asset_path 'default_widget.css'}' rel='stylesheet' type='text/css' />\n"