From 0944441ab86dd815c8d942d1347286b3ac8f2fcb Mon Sep 17 00:00:00 2001 From: Miquel Sabaté Solà Date: Mon, 22 Jul 2024 14:34:09 +0200 Subject: Add IT as another source 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 +- config/locales/ca.yml | 1 + config/locales/en.yml | 1 + 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/assets/stylesheets/things.css b/app/assets/stylesheets/things.css index ccc79df..154232b 100644 --- a/app/assets/stylesheets/things.css +++ b/app/assets/stylesheets/things.css @@ -109,6 +109,10 @@ h5 a { background-color: #ecbaff; } +.dot_it { + background-color: #008000; +} + .dot_bio { background-color: #81d41a; } diff --git a/app/models/thing.rb b/app/models/thing.rb index 01f59e9..f3596f1 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 bio], validate: true + novel paper letters phd chronicle bio it], 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 0bfe01e..af9dec7 100644 --- a/config/locales/ca.yml +++ b/config/locales/ca.yml @@ -144,4 +144,5 @@ ca: letters: Epistolar phd: Tesi doctoral chronicle: Historiografia + it: Enginyeria informàtica bio: Biografia diff --git a/config/locales/en.yml b/config/locales/en.yml index 7bfe478..d593910 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -145,3 +145,4 @@ en: phd: Doctoral thesis chronicle: Historiography bio: Biography + it: Computer engineering & IT -- cgit v1.2.3