From 87c3ff44381d270f3a4f4c384f674f85a7f178a1 Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Fri, 15 Mar 2024 22:42:17 +0100 Subject: things: added the 'phd' kind MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Miquel Sabaté Solà --- app/assets/stylesheets/things.css | 4 ++++ app/models/thing.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/assets/stylesheets/things.css b/app/assets/stylesheets/things.css index 74cffe1..7d2a424 100644 --- a/app/assets/stylesheets/things.css +++ b/app/assets/stylesheets/things.css @@ -96,3 +96,7 @@ h5 a { .dot_letters { background-color: #4bacc6; } + +.dot_phd { + background-color: #cccccc; +} diff --git a/app/models/thing.rb b/app/models/thing.rb index 1e1fb79..a27951f 100644 --- a/app/models/thing.rb +++ b/app/models/thing.rb @@ -13,7 +13,7 @@ class Thing < ApplicationRecord has_many :tags, through: :tag_references enum :status, %i[read notread tobepublished], validate: true - enum :kind, %i[other poetry theater essay shorts novel paper letters], validate: true + enum :kind, %i[other poetry theater essay shorts novel paper letters phd], validate: true # Returns all things which match the given text for any of the string columns # from the table. -- cgit v1.2.3