also remove all button_classes usage

This commit is contained in:
2023-01-21 19:42:46 +02:00
parent 15dd0bb557
commit 6852883273
9 changed files with 28 additions and 45 deletions

View File

@ -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