profile_info_block.rb 477 Bytes
class ProfileInfoBlock < Block

  def self.description
    _('Profile information block')
  end

  def help
    _('Basic information about <i>%{user}</i>. Here you see how much time <i>%{user}</i> is part of the <i>%{env}</i> enviroment, and useful links.') % { :user => self.owner.name(), :env => self.owner.environment.name() }
  end

  def content
    block = self
    lambda do
      render :file => 'blocks/profile_info', :locals => { :block => block }
    end
  end

end