Sha256: e38df27b4292c81edbd60b3a23b255658e86e1d0a807af0cf2a383cf3fa66011

Contents?: true

Size: 216 Bytes

Versions: 14

Compression:

Stored size: 216 Bytes

Contents

module Dorsale::UsersHelper
  def avatar_img(user, url = nil)
    url = user.avatar_url if url.nil?

    image_tag(url,
      :class => "avatar",
      :alt   => user.to_s,
      :title => user.to_s,
    )
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
dorsale-3.5.2 app/helpers/dorsale/users_helper.rb
dorsale-3.5.1 app/helpers/dorsale/users_helper.rb
dorsale-3.5.0 app/helpers/dorsale/users_helper.rb
dorsale-3.4.0 app/helpers/dorsale/users_helper.rb
dorsale-3.3.0 app/helpers/dorsale/users_helper.rb
dorsale-3.2.0 app/helpers/dorsale/users_helper.rb
dorsale-3.1.7 app/helpers/dorsale/users_helper.rb
dorsale-3.1.6 app/helpers/dorsale/users_helper.rb
dorsale-3.1.5 app/helpers/dorsale/users_helper.rb
dorsale-3.1.4 app/helpers/dorsale/users_helper.rb
dorsale-3.1.3 app/helpers/dorsale/users_helper.rb
dorsale-3.1.2 app/helpers/dorsale/users_helper.rb
dorsale-3.1.1 app/helpers/dorsale/users_helper.rb
dorsale-3.1.0 app/helpers/dorsale/users_helper.rb