Fix bug when selecting theme

This commit is contained in:
chris2tof committed 2011-08-25 15:44:52 +08:00
1 parent 32849f1d1b
commit 8b576cac48
2 files changed
+5 -9

No files matched your search

+4 -8
View File
@@ -66,10 +66,8 @@ module Parser
c.define_tag 'stylesheets' do |tag|
res = ''
res << "<link href='#{page.design.structure_css.url}' rel='stylesheet' type='text/css' /> "
page.design.themes.each do |theme|
res << "<link href='#{theme.file.url}' rel='stylesheet' type='text/css' /> "
end
res
theme = page.design.themes.detect{ |d| d.id == page.theme_id }
res << "<link href='#{theme.file.url}' rel='stylesheet' type='text/css' />"
end
c.define_tag 'javascripts' do |tag|
res = ''
@@ -171,10 +169,8 @@ module Parser
c.define_tag 'stylesheets' do |tag|
res = ''
res << "<link href='#{page.design.structure_css.url}' rel='stylesheet' type='text/css' />"
page.design.themes.each do |theme|
res << "<link href='#{theme.file.url}' rel='stylesheet' type='text/css' />"
end
res
theme = page.design.themes.detect{ |d| d.id == page.theme_id }
res << "<link href='#{theme.file.url}' rel='stylesheet' type='text/css' />"
end
c.define_tag 'javascripts' do |tag|
res = ''