Bio allows for date of birth without (zero) year. Added entity ID to logo title.

This commit is contained in:
2024-11-24 06:11:42 +01:00
parent 293072c659
commit 30408673f5
5 changed files with 11 additions and 53 deletions

View File

@@ -27,11 +27,11 @@
<dfn class="bio-label"><Icon icon="cake" />Date of birth</dfn>
<span class="birthdate">
<span class="birthdate-long">{{ formatDate(actor.dateOfBirth, 'MMMM d, yyyy') }}</span>
<span class="birthdate-short">{{ formatDate(actor.dateOfBirth, 'MMM d, yyyy') }}</span>
<span class="birthdate-long">{{ formatDate(actor.dateOfBirth, actor.dateOfBirth.getFullYear() === 0 ? 'MMMM d' : 'MMMM d, yyyy') }}</span>
<span class="birthdate-short">{{ formatDate(actor.dateOfBirth, actor.dateOfBirth.getFullYear() === 0 ? 'MMM d' : 'MMM d, yyyy') }}</span>
<span
v-if="!actor.dateOfDeath"
v-if="!actor.dateOfDeath && actor.dateOfBirth.getFullYear() !== 0"
class="age"
>{{ actor.ageFromBirth }}</span>
</span>