Module: Precious::HasUserIcons

Included in:
Views::History, Views::LatestChanges
Defined in:
lib/gollum/views/has_user_icons.rb

Instance Method Summary collapse

Instance Method Details

#partial(name) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/gollum/views/has_user_icons.rb', line 7

def partial(name)
  if name == :author_template
    self.class.partial("history_authors/#{@wiki.user_icons}")
  else
    super
  end
end

#user_icon_code(str) ⇒ Object



3
4
5
# File 'lib/gollum/views/has_user_icons.rb', line 3

def user_icon_code(str)
  Digest::MD5.hexdigest(str.strip.downcase)
end