diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 15:20:51 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 15:20:51 +0100 |
| commit | 5975dec5d7cddfa88caa1e78c2ca8b41d4a0cd5c (patch) | |
| tree | 7f25450b2bcba5449291717e1e2b6406f8a63d67 | |
| parent | 16739684bb7ca55d71c22cbd103ca8c058c33ecc (diff) | |
| download | operum-5975dec5d7cddfa88caa1e78c2ca8b41d4a0cd5c.tar.gz operum-5975dec5d7cddfa88caa1e78c2ca8b41d4a0cd5c.zip | |
thing: added the 'letters' kind
Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
| -rw-r--r-- | app/assets/stylesheets/things.css | 4 | ||||
| -rw-r--r-- | app/models/thing.rb | 2 | ||||
| -rw-r--r-- | config/locales/ca.yml | 1 | ||||
| -rw-r--r-- | config/locales/en.yml | 1 |
4 files changed, 7 insertions, 1 deletions
diff --git a/app/assets/stylesheets/things.css b/app/assets/stylesheets/things.css index af8487f..74cffe1 100644 --- a/app/assets/stylesheets/things.css +++ b/app/assets/stylesheets/things.css @@ -92,3 +92,7 @@ h5 a { .dot_novel { background-color: #60a5fa; } + +.dot_letters { + background-color: #4bacc6; +} diff --git a/app/models/thing.rb b/app/models/thing.rb index 1f1e4e4..1e1fb79 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], validate: true + enum :kind, %i[other poetry theater essay shorts novel paper letters], validate: true # Returns all things which match the given text for any of the string columns # from the table. diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 5cc7f78..8f4c52c 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -136,3 +136,4 @@ ca: shorts: Narració breu novel: Novel·la paper: Article + letters: Epistolar diff --git a/config/locales/en.yml b/config/locales/en.yml index c5a12c8..a69371c 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -136,3 +136,4 @@ en: shorts: Shorts novel: Novel paper: Paper + letters: Letters |
