application helper changed
This commit is contained in:
parent
db37c694aa
commit
44a7b8630d
|
@ -5,13 +5,8 @@ module ApplicationHelper
|
||||||
@color = Digest::MD5.hexdigest(user.name)[0..5]
|
@color = Digest::MD5.hexdigest(user.name)[0..5]
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_inverted_color(user)
|
|
||||||
@inverted_color = Digest::MD5.hexdigest(user.name)[0..5].reverse
|
|
||||||
end
|
|
||||||
|
|
||||||
def get_color_style(user)
|
def get_color_style(user)
|
||||||
@style = "background-color: #"+ get_color(user) +"; color: #"+
|
@style = "background-color: #"+ get_color(user) +";"
|
||||||
get_inverted_color(user)+ ";"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
#tijdelijk voor layout
|
#tijdelijk voor layout
|
||||||
|
|
Loading…
Reference in a new issue