module Softwear::Auth::Helper
Public Instance Methods
profile_picture_of(user = nil, options = {})
click to toggle source
# File lib/softwear/auth/helper.rb, line 4 def profile_picture_of(user = nil, options = {}) options[:class] ||= '' options[:class] += ' media-object img-rounded profile-pic img img-responsive' options[:alt] ||= "#{user.try(:full_name) || '(Unknown)'}'s Avatar" options[:title] ||= user.try(:full_name) || 'Someone' image_tag user.try(:profile_picture_url) || 'avatar/masarie.jpg', options end