diff options
| author | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 22:42:17 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <msabate@suse.com> | 2024-03-15 22:42:17 +0100 |
| commit | 87c3ff44381d270f3a4f4c384f674f85a7f178a1 (patch) | |
| tree | edd32d40bb39eebb699790a83302e2d38e1c35c8 | |
| parent | 38c383b22d3999f0c1184dbc7b1d80573e4ee278 (diff) | |
| download | operum-87c3ff44381d270f3a4f4c384f674f85a7f178a1.tar.gz operum-87c3ff44381d270f3a4f4c384f674f85a7f178a1.zip | |
things: added the 'phd' 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 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. diff --git a/config/locales/ca.yml b/config/locales/ca.yml index 8f4c52c..69670de 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -137,3 +137,4 @@ ca: novel: Novel·la paper: Article letters: Epistolar + phd: Tesi doctoral diff --git a/config/locales/en.yml b/config/locales/en.yml index a69371c..e4196d4 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -137,3 +137,4 @@ en: novel: Novel paper: Paper letters: Letters + phd: Doctoral thesis |
