mirror of
https://github.com/documenso/documenso.git
synced 2025-11-17 02:01:33 +10:00
feat: add envelope editor
This commit is contained in:
@ -113,15 +113,21 @@ export const TemplatePageViewRecentActivity = ({
|
||||
</div>
|
||||
|
||||
<Link
|
||||
to={`${documentRootPath}/${document.id}`}
|
||||
to={`${documentRootPath}/${document.envelopeId}`}
|
||||
className="text-muted-foreground dark:text-muted-foreground/70 flex-auto truncate py-0.5 text-xs leading-5"
|
||||
>
|
||||
{match(document.source)
|
||||
.with(DocumentSource.DOCUMENT, DocumentSource.TEMPLATE, () => (
|
||||
<Trans>
|
||||
Document created by <span className="font-bold">{document.user.name}</span>
|
||||
</Trans>
|
||||
))
|
||||
.with(
|
||||
DocumentSource.DOCUMENT,
|
||||
DocumentSource.TEMPLATE,
|
||||
DocumentSource.NONE,
|
||||
() => (
|
||||
<Trans>
|
||||
Document created by{' '}
|
||||
<span className="font-bold">{document.user.name}</span>
|
||||
</Trans>
|
||||
),
|
||||
)
|
||||
.with(DocumentSource.TEMPLATE_DIRECT_LINK, () => (
|
||||
<Trans>
|
||||
Document created using a <span className="font-bold">direct link</span>
|
||||
|
||||
Reference in New Issue
Block a user