Improve pet type "Added" timestamp styles
This commit is contained in:
parent
ad51690617
commit
4f9fbc1ac0
3 changed files with 11 additions and 1 deletions
|
@ -57,6 +57,8 @@
|
|||
|
||||
.info
|
||||
font-size: .85em
|
||||
p
|
||||
margin-block: .25em
|
||||
|
||||
.rainbow-pool-pagination
|
||||
margin-block: .5em
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue