From 41d8ea2b3639cbfe88973c642782a80297573dba Mon Sep 17 00:00:00 2001 From: Jon Massey Date: Thu, 9 Jan 2025 18:29:09 +0000 Subject: [PATCH 1/2] updated_at -> created_at For certain types of codelist (dm+d, SNOMED CT etc) every time the coding system is updated the versions of every codelist using this system get updated and thus the updated_at field is not very useful to understand the timeline of codelist versions. Therefore, switch to created_at which is hopefully less confusing --- assets/src/styles/base.css | 2 +- templates/codelists/version.html | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/assets/src/styles/base.css b/assets/src/styles/base.css index b2477bae..3167afc4 100644 --- a/assets/src/styles/base.css +++ b/assets/src/styles/base.css @@ -68,7 +68,7 @@ a:focus { font-size: 1.1rem; } -.sidebar-versions .updated { +.sidebar-versions .created { border-top: 1px dotted #ddd; font-size: 0.9rem; } diff --git a/templates/codelists/version.html b/templates/codelists/version.html index 81458a51..49a37cc3 100644 --- a/templates/codelists/version.html +++ b/templates/codelists/version.html @@ -230,12 +230,12 @@

Versions

- + - Updated: + Created: - {{ version.updated_at | date:'Y-m-d H:i:s' }} + {{ version.created_at | date:'Y-m-d H:i:s' }} From e0a27f25208f6d4eb2ccfc4048e134bf921b938b Mon Sep 17 00:00:00 2001 From: Jon Massey Date: Tue, 14 Jan 2025 17:18:22 +0000 Subject: [PATCH 2/2] Explain 'created_at' via tooltip --- templates/codelists/version.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/codelists/version.html b/templates/codelists/version.html index 49a37cc3..c038549b 100644 --- a/templates/codelists/version.html +++ b/templates/codelists/version.html @@ -232,7 +232,7 @@

Versions

- Created: + Created: {{ version.created_at | date:'Y-m-d H:i:s' }}