application helper changed

This commit is contained in:
ohsab 2014-12-09 17:07:17 +01:00
parent db37c694aa
commit 44a7b8630d

View file

@ -5,13 +5,8 @@ module ApplicationHelper
@color = Digest::MD5.hexdigest(user.name)[0..5]
end
def get_inverted_color(user)
@inverted_color = Digest::MD5.hexdigest(user.name)[0..5].reverse
end
def get_color_style(user)
@style = "background-color: #"+ get_color(user) +"; color: #"+
get_inverted_color(user)+ ";"
@style = "background-color: #"+ get_color(user) +";"
end
#tijdelijk voor layout