From 930bfca0283eaf97c5d6d48184d3aaa9f7e63419 Mon Sep 17 00:00:00 2001 From: Emi Matchu Date: Tue, 22 Oct 2024 16:46:55 -0700 Subject: [PATCH] Add creation date to alt styles listings Copied from how pet types do it! --- app/views/alt_styles/_alt_style.html.haml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/views/alt_styles/_alt_style.html.haml b/app/views/alt_styles/_alt_style.html.haml index e17e2be6..9be4b858 100644 --- a/app/views/alt_styles/_alt_style.html.haml +++ b/app/views/alt_styles/_alt_style.html.haml @@ -3,4 +3,10 @@ = image_tag alt_style.preview_image_url, class: "preview", loading: "lazy" .name %span= alt_style.series_name - %span= alt_style.pet_name \ No newline at end of file + %span= alt_style.pet_name + .info + %p + Added + = time_tag alt_style.created_at, + title: alt_style.created_at.to_formatted_s(:long_nst) do + = time_with_only_month_if_old alt_style.created_at \ No newline at end of file