diff --git a/src/components/CompactCommitAuthorship.svelte b/src/components/CompactCommitAuthorship.svelte new file mode 100644 index 000000000..8403782b6 --- /dev/null +++ b/src/components/CompactCommitAuthorship.svelte @@ -0,0 +1,103 @@ + + + + +
+ +
+ {#if commit.author.email === commit.committer.email} +
+ avatar +
+ {:else} +
+ avatar +
+
+ avatar +
+ {/if} +
+ +
+ {#if commit.author.email === commit.committer.email} +
+
Author
+ avatar + {commit.author.name} +
+ {:else} +
+
Author
+ avatar + {commit.author.name} +
+
+
Committer
+ avatar + {commit.committer.name} +
+ {/if} +
+
+
+ {utils.formatCommit(commit.id)} +
+
+ {utils.formatTimestamp(commit.committer.time)} +
+
diff --git a/src/views/projects/Cob/CobCommitTeaser.svelte b/src/views/projects/Cob/CobCommitTeaser.svelte index 6ac47a9fe..3a9f7d5e7 100644 --- a/src/views/projects/Cob/CobCommitTeaser.svelte +++ b/src/views/projects/Cob/CobCommitTeaser.svelte @@ -1,9 +1,9 @@