mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-10-30 16:50:47 +08:00
Add missing absolute timestamps back as title tooltip
This commit is contained in:
@@ -124,7 +124,7 @@
|
||||
</div>
|
||||
<NodeId nodeId={authorId} alias={authorAlias} />
|
||||
<slot name="caption">{caption}</slot>
|
||||
<span class="card-metadata">
|
||||
<span class="card-metadata" title={utils.absoluteTimestamp(timestamp)}>
|
||||
{utils.formatTimestamp(timestamp)}
|
||||
</span>
|
||||
{#if lastEdit}
|
||||
|
||||
@@ -258,7 +258,9 @@
|
||||
</span>
|
||||
</div>
|
||||
<div class="revision-data">
|
||||
{utils.formatTimestamp(revisionTimestamp)}
|
||||
<span title={utils.absoluteTimestamp(revisionTimestamp)}>
|
||||
{utils.formatTimestamp(revisionTimestamp)}
|
||||
</span>
|
||||
{#if loading}
|
||||
<Loading small />
|
||||
{/if}
|
||||
@@ -389,7 +391,9 @@
|
||||
{utils.formatObjectId(revisionId)}
|
||||
</span>
|
||||
{/if}
|
||||
{utils.formatTimestamp(revisionTimestamp)}
|
||||
<span title={utils.absoluteTimestamp(revisionTimestamp)}>
|
||||
{utils.formatTimestamp(revisionTimestamp)}
|
||||
</span>
|
||||
<div style="display: flex; gap: 0.5rem; margin-left: auto;">
|
||||
{#if canEdit(revisionAuthor.id) && editRevision && revisionState === "read"}
|
||||
<IconButton
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
<script lang="ts">
|
||||
import type { CommitHeader } from "@httpd-client";
|
||||
|
||||
import { formatTimestamp, gravatarURL } from "@app/lib/utils";
|
||||
import {
|
||||
absoluteTimestamp,
|
||||
formatTimestamp,
|
||||
gravatarURL,
|
||||
} from "@app/lib/utils";
|
||||
|
||||
export let header: CommitHeader;
|
||||
</script>
|
||||
@@ -40,7 +44,9 @@
|
||||
</div>
|
||||
committed
|
||||
<slot />
|
||||
{formatTimestamp(header.committer.time)}
|
||||
<span title={absoluteTimestamp(header.committer.time)}>
|
||||
{formatTimestamp(header.committer.time)}
|
||||
</span>
|
||||
{:else}
|
||||
<div class="person">
|
||||
<img class="avatar" alt="avatar" src={gravatarURL(header.author.email)} />
|
||||
@@ -56,6 +62,8 @@
|
||||
</div>
|
||||
committed
|
||||
<slot />
|
||||
{formatTimestamp(header.committer.time)}
|
||||
<span title={absoluteTimestamp(header.committer.time)}>
|
||||
{formatTimestamp(header.committer.time)}
|
||||
</span>
|
||||
{/if}
|
||||
</span>
|
||||
|
||||
@@ -592,7 +592,9 @@
|
||||
<NodeId nodeId={issue.author.id} alias={issue.author.alias} />
|
||||
opened
|
||||
<span class="global-oid">{utils.formatObjectId(issue.id)}</span>
|
||||
{utils.formatTimestamp(issue.discussion[0].timestamp)}
|
||||
<span title={utils.absoluteTimestamp(issue.discussion[0].timestamp)}>
|
||||
{utils.formatTimestamp(issue.discussion[0].timestamp)}
|
||||
</span>
|
||||
{#if lastDescriptionEdit}
|
||||
<div class="author-metadata">•</div>
|
||||
<div
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
<script lang="ts">
|
||||
import type { BaseUrl, Issue } from "@httpd-client";
|
||||
|
||||
import { formatObjectId, formatTimestamp } from "@app/lib/utils";
|
||||
import {
|
||||
absoluteTimestamp,
|
||||
formatObjectId,
|
||||
formatTimestamp,
|
||||
} from "@app/lib/utils";
|
||||
|
||||
import Badge from "@app/components/Badge.svelte";
|
||||
import IconSmall from "@app/components/IconSmall.svelte";
|
||||
@@ -128,7 +132,9 @@
|
||||
<NodeId nodeId={issue.author.id} alias={issue.author.alias} />
|
||||
opened
|
||||
<span class="global-oid">{formatObjectId(issue.id)}</span>
|
||||
{formatTimestamp(issue.discussion[0].timestamp)}
|
||||
<span title={absoluteTimestamp(issue.discussion[0].timestamp)}>
|
||||
{formatTimestamp(issue.discussion[0].timestamp)}
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="right">
|
||||
|
||||
@@ -748,7 +748,9 @@
|
||||
<NodeId nodeId={patch.author.id} alias={patch.author.alias} />
|
||||
opened
|
||||
<span class="global-oid">{utils.formatObjectId(patch.id)}</span>
|
||||
{utils.formatTimestamp(patch.revisions[0].timestamp)}
|
||||
<span title={utils.absoluteTimestamp(patch.revisions[0].timestamp)}>
|
||||
{utils.formatTimestamp(patch.revisions[0].timestamp)}
|
||||
</span>
|
||||
</div>
|
||||
</CobHeader>
|
||||
|
||||
|
||||
@@ -3,7 +3,11 @@
|
||||
import type { Patch } from "@httpd-client";
|
||||
|
||||
import { HttpdClient } from "@httpd-client";
|
||||
import { formatObjectId, formatTimestamp } from "@app/lib/utils";
|
||||
import {
|
||||
absoluteTimestamp,
|
||||
formatObjectId,
|
||||
formatTimestamp,
|
||||
} from "@app/lib/utils";
|
||||
|
||||
import Badge from "@app/components/Badge.svelte";
|
||||
import DiffStatBadge from "@app/components/DiffStatBadge.svelte";
|
||||
@@ -161,7 +165,9 @@
|
||||
{formatObjectId(patch.revisions[patch.revisions.length - 1].id)}
|
||||
</span>
|
||||
{/if}
|
||||
{formatTimestamp(latestRevision.timestamp)}
|
||||
<span title={absoluteTimestamp(latestRevision.timestamp)}>
|
||||
{formatTimestamp(latestRevision.timestamp)}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user