diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-18 13:58:17 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-18 13:58:17 +0100 |
| commit | cb9113ceff41ed374e4ecce2583b4f9e3ff506dc (patch) | |
| tree | 166471386f9b441628c0f619bd29bc7b5f7bc67d | |
| parent | 13f522f8022a99dc9e6ae2f56582072c5fc8c17a (diff) | |
| download | operum-cb9113ceff41ed374e4ecce2583b4f9e3ff506dc.tar.gz operum-cb9113ceff41ed374e4ecce2583b4f9e3ff506dc.zip | |
thing: added 'bio' 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 2fc89ff..f4276ce 100644 --- a/app/assets/stylesheets/things.css +++ b/app/assets/stylesheets/things.css @@ -104,3 +104,7 @@ h5 a { .dot_chronicle { background-color: #ecbaff; } + +.dot_bio { + background-color: #81d41a; +} diff --git a/app/models/thing.rb b/app/models/thing.rb index 4289b76..a67d38e 100644 --- a/app/models/thing.rb +++ b/app/models/thing.rb @@ -14,7 +14,7 @@ class Thing < ApplicationRecord enum :status, %i[read notread tobepublished], validate: true enum :kind, %i[other poetry theater essay shorts - novel paper letters phd chronicle], validate: true + novel paper letters phd chronicle bio], 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 9e25d08..a394caa 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -139,3 +139,4 @@ ca: letters: Epistolar phd: Tesi doctoral chronicle: Historiografia + bio: Biografia diff --git a/config/locales/en.yml b/config/locales/en.yml index 9f64086..9cef5f8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -139,3 +139,4 @@ en: letters: Letters phd: Doctoral thesis chronicle: Historiography + bio: Biography |
