Improve pet type "Added" timestamp styles

This commit is contained in:
Emi Matchu 2024-10-11 16:24:47 -07:00
parent ad51690617
commit 4f9fbc1ac0
3 changed files with 11 additions and 1 deletions

View file

@ -57,6 +57,8 @@
.info
font-size: .85em
p
margin-block: .25em
.rainbow-pool-pagination
margin-block: .5em

View file

@ -3,7 +3,6 @@
= pet_type_image pet_type, :happy, :thumb, class: "preview"
.name= pet_type.human_name
.info
%p Added #{time_with_only_month_if_old pet_type.created_at}
- if support_staff?
%p
- if pet_type.num_unlabeled_states > 0
@ -15,3 +14,8 @@
- else
= moon_progress pet_type.num_poses, pet_type.num_poses + pet_type.num_missing_poses
#{pet_type.num_poses}/#{pet_type.num_poses + pet_type.num_missing_poses}
%p
Added
= time_tag pet_type.created_at,
title: pet_type.created_at.to_formatted_s(:long_nst) do
= time_with_only_month_if_old pet_type.created_at

View file

@ -1 +1,5 @@
Date::DATE_FORMATS[:month_and_day] = "%B %e"
Time::DATE_FORMATS[:long_nst] = lambda { |time|
time.in_time_zone("Pacific Time (US & Canada)").
to_formatted_s(:long) + " NST"
}