mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-01-22 16:46:28 +01:00
Writing logic code is hard
This commit is contained in:
parent
5314f071b2
commit
332dd30c1d
1 changed files with 34 additions and 33 deletions
|
@ -662,39 +662,40 @@ function Status({
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
</span>{' '}
|
</span>{' '}
|
||||||
{size !== 'l' && uri ? (
|
{size !== 'l' &&
|
||||||
<a href={uri} target="_blank" class="time">
|
(uri ? (
|
||||||
<Icon
|
<a href={uri} target="_blank" class="time">
|
||||||
icon={visibilityIconsMap[visibility]}
|
<Icon
|
||||||
alt={visibility}
|
icon={visibilityIconsMap[visibility]}
|
||||||
size="s"
|
alt={visibility}
|
||||||
/>{' '}
|
size="s"
|
||||||
<relative-time
|
/>{' '}
|
||||||
datetime={createdAtDate.toISOString()}
|
<relative-time
|
||||||
format="micro"
|
datetime={createdAtDate.toISOString()}
|
||||||
threshold="P1D"
|
format="micro"
|
||||||
prefix=""
|
threshold="P1D"
|
||||||
>
|
prefix=""
|
||||||
{createdAtDate.toLocaleString()}
|
>
|
||||||
</relative-time>
|
{createdAtDate.toLocaleString()}
|
||||||
</a>
|
</relative-time>
|
||||||
) : (
|
</a>
|
||||||
<span class="time">
|
) : (
|
||||||
<Icon
|
<span class="time">
|
||||||
icon={visibilityIconsMap[visibility]}
|
<Icon
|
||||||
alt={visibility}
|
icon={visibilityIconsMap[visibility]}
|
||||||
size="s"
|
alt={visibility}
|
||||||
/>{' '}
|
size="s"
|
||||||
<relative-time
|
/>{' '}
|
||||||
datetime={createdAtDate.toISOString()}
|
<relative-time
|
||||||
format="micro"
|
datetime={createdAtDate.toISOString()}
|
||||||
threshold="P1D"
|
format="micro"
|
||||||
prefix=""
|
threshold="P1D"
|
||||||
>
|
prefix=""
|
||||||
{createdAtDate.toLocaleString()}
|
>
|
||||||
</relative-time>
|
{createdAtDate.toLocaleString()}
|
||||||
</span>
|
</relative-time>
|
||||||
)}
|
</span>
|
||||||
|
))}
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class={`content-container ${
|
class={`content-container ${
|
||||||
|
|
Loading…
Reference in a new issue