also remove all button_classes usage
This commit is contained in:
@ -26,7 +26,7 @@ module Merged
|
||||
|
||||
def last_change_class
|
||||
digit = last_change_digit
|
||||
return button_classes if digit > 9
|
||||
return "" if digit > 9
|
||||
digit = 9 - digit
|
||||
reds = { "1" => "bg-red-100","2" => "bg-red-200","3" => "bg-red-100",
|
||||
"4" => "bg-red-400","5" => "bg-red-500","6" => "bg-red-600",
|
||||
@ -34,7 +34,7 @@ module Merged
|
||||
|
||||
clazz = reds[digit.to_s].to_s
|
||||
clazz += " " + "text-white" if digit > 7
|
||||
button_classes + " " + clazz
|
||||
clazz
|
||||
end
|
||||
|
||||
def last_change_text
|
||||
@ -43,9 +43,5 @@ module Merged
|
||||
"#{digit} min. by #{ChangeSet.current.last_editor}"
|
||||
end
|
||||
|
||||
def button_classes
|
||||
"mr-3 inline-block rounded-lg px-3 py-2 text-md font-medium border border-gray-500"
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user