class NotificationPlugin::LobbyNoteContent < Event before_validation :set_title def self.short_description 'Lobby note for gatekeepers' end def self.description 'Notify gatekeeper' end def set_title self.name = _('Notification %s') % self.profile.lobby_notes.count unless self.profile.nil? end #FIXME make the html output specific # def to_html(options = {}) # source = options["source"] # embeded = options.has_key? "embeded" # prompt_id = options["prompt_id"] # pairwise_content = self # lambda do # locals = {:pairwise_content => pairwise_content, :source => source, :embeded => embeded, :prompt_id => prompt_id } # render :file => 'content_viewer/prompt.rhtml', :locals => locals # end # end # end