diff --git a/plugins/notification/lib/notification_plugin/lobby_note_content.rb b/plugins/notification/lib/notification_plugin/lobby_note_content.rb index 707f4db..38f8741 100644 --- a/plugins/notification/lib/notification_plugin/lobby_note_content.rb +++ b/plugins/notification/lib/notification_plugin/lobby_note_content.rb @@ -1,5 +1,7 @@ class NotificationPlugin::LobbyNoteContent < Event + before_validation :set_title + def self.short_description 'Lobby note for gatekeepers' end @@ -8,6 +10,11 @@ class NotificationPlugin::LobbyNoteContent < Event '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"] -- libgit2 0.21.2