class LocalizationBlock < Block def self.description _('Localization map block') end def help _('Shows where the profile is on the material world.') end def content profile = self.owner title = self.title lambda do profile.lat ? block_title(title) + content_tag('div', '', :class => 'the-localization-map' ) : content_tag('i', _('This profile has no geographical position registered.')) end end end