-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproblem-details.component.html
More file actions
76 lines (75 loc) · 2.51 KB
/
problem-details.component.html
File metadata and controls
76 lines (75 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
@let appMode = appMode$ | async;
@let currentUser = currentUser$ | async;
@if (problemDetails(); as details) {
<div>
@if (currentUser?.canChangeProblemVisibility) {
<la-visibility-toggle [problem]="problem()" />
}
<table class="table table-sm table-borderless">
<tbody>
<tr>
<td i18n>ID:</td>
<td>{{ details.problemId }}</td>
</tr>
<tr>
<td i18n>Dataset:</td>
<td>{{ datasetLabels[details.dataset] }}</td>
</tr>
<tr>
<td i18n>Entailment label:</td>
<td>
<la-entailment-label-badge
[entailmentLabel]="details.entailmentLabel"
></la-entailment-label-badge>
</td>
</tr>
<tr>
<td class="text-muted" i18n>Based on:</td>
@if (appMode === 'browse' && details.baseProblemId !== null) {
<td>
<a [routerLink]="['/annotate', details.baseProblemId]">
<span>{{ details.baseProblemId }}</span>
<fa-icon [icon]="faArrowUpRight" class="ms-2" />
</a>
</td>
} @else if (details.baseProblemId === null) {
<td i18n>None</td>
} @else {
<td>{{ details.baseProblemId }}</td>
}
</tr>
@if (sectionString()) {
<tr>
<td i18n>Section:</td>
<td>{{ sectionString() }}</td>
</tr>
} @if (details.comment) {
<tr>
<td>
<span i18n>Comment:</span>
<fa-icon
class="ms-1"
[icon]="faQuestionCircle"
aria-hidden="true"
ngbTooltip="Comments provided by Bill McCartney."
i18n-ngbTooltip
/>
</td>
<td>
<i>{{ details.comment }}</i>
</td>
</tr>
}
<tr>
<td i18n>Labels:</td>
<td>
<la-problem-labels
[problemId]="details.problemId"
[labelAnnotations]="details.labelAnnotations"
></la-problem-labels>
</td>
</tr>
</tbody>
</table>
</div>
}