Commit 8d006b668096e6b800c3fb17401dd746e21d8156

Authored by Leandro Santos
2 parents 53465a10 0a62ae2b

Merge branches 'AI3126-notification-plugin' and 'rails3_stable' into rails3_stable

plugins/notification/lib/notification_plugin/lobby_note_content.rb
1 class NotificationPlugin::LobbyNoteContent < Event 1 class NotificationPlugin::LobbyNoteContent < Event
2 2
  3 + before_validation :set_title
  4 +
3 def self.short_description 5 def self.short_description
4 'Lobby note for gatekeepers' 6 'Lobby note for gatekeepers'
5 end 7 end
@@ -8,6 +10,11 @@ class NotificationPlugin::LobbyNoteContent &lt; Event @@ -8,6 +10,11 @@ class NotificationPlugin::LobbyNoteContent &lt; Event
8 'Notify gatekeeper' 10 'Notify gatekeeper'
9 end 11 end
10 12
  13 + def set_title
  14 + self.name = _('Notification %s') % self.profile.lobby_notes.count unless self.profile.nil?
  15 + end
  16 +
  17 +
11 #FIXME make the html output specific 18 #FIXME make the html output specific
12 # def to_html(options = {}) 19 # def to_html(options = {})
13 # source = options["source"] 20 # source = options["source"]