require "#{File.dirname(__FILE__)}/abstract_note" module Footnotes module Notes class LayoutNote < AbstractNote def row :edit end def link escape(Footnotes::Filter.prefix(filename, 1, 1)) end def valid? prefix? && filename end protected def filename Dir[Footnotes.view_subscriber.layout.to_s+".html*"].first end end end end