X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=lib%2Fmanifest%2Flocal%2Fview%2Ffiler%2Fbody%2Ffile_body%2Ffile_item%2Fcaption%2Fdefault.rb;h=dd663757bb7dabbaff1f7b85ba4d2295e13de7a7;hb=fead105184325636aaec015bf0e42fb5e23ca4e9;hp=6b4f5a51cde4b4b6a8f3be86e9a5ac1cd91f3d58;hpb=1bba09932bddac9e58c94ac0eb872598fe07e2c7;p=pettanr%2Fpettanr.git diff --git a/lib/manifest/local/view/filer/body/file_body/file_item/caption/default.rb b/lib/manifest/local/view/filer/body/file_body/file_item/caption/default.rb index 6b4f5a51..dd663757 100644 --- a/lib/manifest/local/view/filer/body/file_body/file_item/caption/default.rb +++ b/lib/manifest/local/view/filer/body/file_body/file_item/caption/default.rb @@ -11,7 +11,7 @@ module Manifest include DefaultModule attr :face, :link - def initialize file_item, item + def initialize file_item, caption_manifest, item super @face = FaceFactory.factory self, self.caption_manifest.face, @item @link = LinkFactory.factory self, self.caption_manifest.link, @item @@ -22,7 +22,7 @@ module Manifest end def item_template_file_name - if self.caption_manifest.link.type == 'none' + if @caption_manifest.link.type == 'none' 'default_without_link' else 'default'