Bookshelf fixes

This commit is contained in:
2023-06-27 21:27:47 +10:00
parent 5f550f7c92
commit b72fd28899
3 changed files with 47 additions and 36 deletions

View File

@@ -28,7 +28,7 @@ module Adamantium
def status_colour
case book_status
when "read"
when "read" || "finished"
"text-green-100 bg-green-500"
when "to-read"
"text-blue-100 bg-blue-500"
@@ -36,6 +36,17 @@ module Adamantium
"text-orange-100 bg-orange-500"
end
end
def status_label
case book_status
when "read" || "finished"
"Read"
when "to-read"
"To read"
when "reading"
"Reading"
end
end
end
end
end