OSDN Git Service

fix boost template
[pettanr/pettanr.git] / app / helpers / application_helper.rb
index b02b918..08b0b5d 100644 (file)
@@ -35,7 +35,7 @@ module ApplicationHelper
   def icon_tag name, opt = {}
     title = opt[:object] ? (name.to_s + ' ID:' + opt[:object].id.to_s) : name
     size = opt[:size] ? opt[:size].to_i : 35
-    tag :img, :src => asset_path(name.to_s.underscore + '.gif'), :width => size, :height => size, :alt => name.to_s + ' Icon', :title => title
+    tag :img, :src => '/images/' + name.to_s.underscore + '.gif', :width => size, :height => size, :alt => name.to_s + ' Icon', :title => title
   end
   
   def author_icon opt = {}
@@ -81,13 +81,13 @@ module ApplicationHelper
   def panel_editor_javascript_include_tags
     WritingFormat.enable_list().map {|wf|
 #      javascript_include_tag wf.engine_name
-      javascript_include_tag wf.engine_name + "/application"
+      javascript_include_tag wf.template_path_name + "/application"
     }.join("\n") + 
     SpeechBalloonTemplate.enable_list().map {|sbt|
-      stylesheet_link_tag sbt.engine_name + "/application"
+      stylesheet_link_tag sbt.template_path_name + "/application"
     }.join("\n") + 
     SpeechBalloonTemplate.enable_list().map {|sbt|
-      javascript_include_tag sbt.engine_name + "/application"
+      javascript_include_tag sbt.template_path_name + "/application"
     }.join("\n")
   end