Skip to content

Commit

Permalink
Only show activity when present
Browse files Browse the repository at this point in the history
  • Loading branch information
GODrums committed Sep 14, 2024
1 parent e82dc6a commit aa6a2e7
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions webapp/src/app/components/leaderboard/leaderboard.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,24 @@ <h1 class="text-3xl font-bold">Artemis Leaderboard</h1>
</td>
<td appTableCell>{{ entry.score }}</td>
<td appTableCell class="flex items-center gap-4" title="Changes Requested">
<div class="flex items-center gap-2">
<app-icon-pull-request-changes-requested />
{{ entry.changesRequested }}
</div>
<div class="flex items-center gap-2" title="Approvals">
<app-icon-pull-request-approved />
{{ entry.approvals }}
</div>
<div class="flex items-center gap-2" title="Comments">
<app-icon-pull-request-comment />
{{ entry.comments }}
</div>
@if (entry.changesRequested && entry.changesRequested > 0) {
<div class="flex items-center gap-2">
<app-icon-pull-request-changes-requested />
{{ entry.changesRequested }}
</div>
}
@if (entry.approvals && entry.approvals > 0) {
<div class="flex items-center gap-2" title="Approvals">
<app-icon-pull-request-approved />
{{ entry.approvals }}
</div>
}
@if (entry.comments && entry.comments > 0) {
<div class="flex items-center gap-2" title="Comments">
<app-icon-pull-request-comment />
{{ entry.comments }}
</div>
}
</td>
</tr>
}
Expand Down

0 comments on commit aa6a2e7

Please sign in to comment.