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]
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue