Bookshelf fixes
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user