Module: PersonalizationHelper

Defined in:
vendor/plugins/hydra_repository/app/helpers/personalization_helper.rb

Constant Summary

DEFAULT_USER_ATTRIBUTES =
['full_name', 'affiliation', 'photo']

Instance Method Summary (collapse)

Instance Method Details

- (Object) user_photo_tag(login)

Creates an image tag with the user#photo attribute as the source

Parameters:

  • (string) login

    the login of the user

Returns:

  • an html image tag or an empty string



30
31
32
33
# File 'vendor/plugins/hydra_repository/app/helpers/personalization_helper.rb', line 30

def user_photo_tag 
  path =  
  path == "" ? "" : image_tag(path)
end