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
|
.info
|
||||||
font-size: .85em
|
font-size: .85em
|
||||||
|
p
|
||||||
|
margin-block: .25em
|
||||||
|
|
||||||
.rainbow-pool-pagination
|
.rainbow-pool-pagination
|
||||||
margin-block: .5em
|
margin-block: .5em
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
= pet_type_image pet_type, :happy, :thumb, class: "preview"
|
= pet_type_image pet_type, :happy, :thumb, class: "preview"
|
||||||
.name= pet_type.human_name
|
.name= pet_type.human_name
|
||||||
.info
|
.info
|
||||||
%p Added #{time_with_only_month_if_old pet_type.created_at}
|
|
||||||
- if support_staff?
|
- if support_staff?
|
||||||
%p
|
%p
|
||||||
- if pet_type.num_unlabeled_states > 0
|
- if pet_type.num_unlabeled_states > 0
|
||||||
|
@ -15,3 +14,8 @@
|
||||||
- else
|
- else
|
||||||
= moon_progress pet_type.num_poses, pet_type.num_poses + pet_type.num_missing_poses
|
= 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}
|
#{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"
|
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