+
+
+
+ delegate.did),
+ patch.author.did,
+ )}
+ labels={patch.labels}
+ submitInProgress={labelSaveInProgress}
+ save={saveLabels} />
+
+
+
+
+
+
+
+
-
- {
- tab = "revisions";
- }}>
- {formatOid(revisions.slice(-1)[0].id)}
-
- Latest
-
-
+ {#if revisions.length > 1}
+ {
+ tab = "revisions";
+ }}>
+ {formatOid(revisions.slice(-1)[0].id)}
+
+ Latest
+
+
+ {/if}
@@ -647,163 +460,32 @@
styleDisplay="block"
styleFlexDirection="column"
styleAlignItems="flex-start">
-
- 1
- ? revisions[0].description.at(-1)
- : undefined}
- author={revisions[0].author}
- reactions={revisions[0].reactions}
- timestamp={revisions[0].timestamp}
- body={revisions[0].description.slice(-1)[0].body}
- reactOnComment={partial(
- reactOnRevision,
- config.publicKey,
- revisions[0].id,
- )}
- editComment={roles.isDelegateOrAuthor(
- config.publicKey,
- repo.delegates.map(delegate => delegate.did),
- revisions[0].author.did,
- ) && partial(editRevision, revisions[0].id)}>
- {#snippet actions()}
-
- {/snippet}
-
-
-
-
-
-
-
-
-
- delegate.did),
- patch.author.did,
- )}
- labels={patch.labels}
- submitInProgress={labelSaveInProgress}
- save={saveLabels} />
-
-
-
-
-
-
-
-
-
-
(hideDiscussion = !hideDiscussion)}>
- Discussion
-
-
- {#each threads as thread}
-
delegate.did),
- )}
- editComment={partial(editComment)}
- createReply={partial(createReply)}
- reactOnComment={partial(reactOnComment, config.publicKey)} />
-
- {/each}
-
-
- (topLevelReplyOpen = false)
- : undefined}
- placeholder="Leave a comment"
- submit={partial(createComment)} />
-
-
-
-
-
-
-
(hideChanges = !hideChanges)}>
- Changes
-
-
- {#await loadHighlightedDiff(repo.rid, latestRevision.base, latestRevision.head)}
- Loading…
- {:then diff}
-
- {/await}
-
-
-
-
-
-
(hideTimeline = !hideTimeline)}>
- Timeline
-
-
-
+
{:else}
- {@const revision = revisions.slice(-1)[0]}
- {#await loadHighlightedDiff(repo.rid, revision.base, revision.head) then diff}
-
- {/await}
+
{/if}