summaryrefslogtreecommitdiffstats
path: root/src/components/SeparatorVirtualGrid.vue
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/SeparatorVirtualGrid.vue')
-rw-r--r--src/components/SeparatorVirtualGrid.vue5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/components/SeparatorVirtualGrid.vue b/src/components/SeparatorVirtualGrid.vue
index bfb6387f..6b2eb394 100644
--- a/src/components/SeparatorVirtualGrid.vue
+++ b/src/components/SeparatorVirtualGrid.vue
@@ -21,7 +21,10 @@
-->
<template>
- <h2 class="grid-title" :style="{height: item.height + 'px'}">
+ <h2 v-if="item.injected.onThisDay" class="grid-title" :style="{height: item.height + 'px'}">
+ {{ n('photos', '{years} year ago', '{years} years ago', item.injected.onThisDay, {years: item.injected.onThisDay}) }}<span> ยท {{ item.injected.month }} {{ item.injected.year }}</span>
+ </h2>
+ <h2 v-else class="grid-title" :style="{height: item.height + 'px'}">
{{ item.injected.month }}
<span>{{ item.injected.year }}</span>
</h2>