16 lines
450 B
HTML
16 lines
450 B
HTML
|
@use chrono::{DateTime, Utc};
|
||
|
@use crate::{Link, templates::link};
|
||
|
|
||
|
@(time: DateTime<Utc>, dark: bool)
|
||
|
|
||
|
<span class="toolkit-time__long">
|
||
|
@:link(&Link::current_tab("#").title(&crate::time(time)).plain(true).dark(dark), {
|
||
|
@crate::time_ago_long(time)
|
||
|
})
|
||
|
</span>
|
||
|
<span class="toolkit-time__short">
|
||
|
@:link(&Link::current_tab("#").title(&crate::time(time)).plain(true).dark(dark), {
|
||
|
@crate::time_ago_short(time)
|
||
|
})
|
||
|
</span>
|