|
4 | 4 | {% endif %} |
5 | 5 |
|
6 | 6 | <div class="table-wrapper"> |
7 | | - <table class="data-table table table-striped table-hover table-sm" style="width:100%;"> |
| 7 | + <table class="data-table table table-hover table-sm" style="width:100%;"> |
8 | 8 | <thead class="thead-light"> |
9 | 9 | <tr> |
10 | 10 | <th scope="col">time</th> |
11 | | - <th scope="col">from</th> |
12 | | - <th scope="col">to</th> |
13 | 11 | {% if includeSubject %} |
14 | 12 | <th scope="col">subject</th> |
15 | 13 | {% endif %} |
|
26 | 24 | {{ clarification.submittime | printtime(null, clarification.contest) }} |
27 | 25 | </a> |
28 | 26 | </td> |
29 | | - {%- if clarification.sender is null %} |
30 | | - {%- set sender = 'Jury' %} |
31 | | - {%- if clarification.recipient is null %} |
32 | | - {%- set recipient = 'All' %} |
33 | | - {%- else %} |
34 | | - {%- set recipient = clarification.recipient.effectiveName %} |
35 | | - {%- endif %} |
36 | | - {%- else %} |
37 | | - {%- set recipient = 'Jury' %} |
38 | | - {%- set sender = clarification.sender.effectiveName %} |
39 | | - {%- endif %} |
40 | 27 |
|
41 | | - <td> |
42 | | - <a data-ajax-modal data-ajax-modal-after="markSeen" href="{{ link }}" title="{{ sender }}"> |
43 | | - {{ sender | u.truncate(teamname_max_length, '…') }} |
44 | | - </a> |
45 | | - </td> |
46 | | - <td> |
47 | | - <a data-ajax-modal data-ajax-modal-after="markSeen" href="{{ link }}" title="{{ recipient }}"> |
48 | | - {{ recipient | u.truncate(teamname_max_length, '…') }} |
49 | | - </a> |
50 | | - </td> |
51 | 28 | {% if includeSubject %} |
52 | 29 | <td> |
53 | 30 | <a data-ajax-modal data-ajax-modal-after="markSeen" href="{{ link }}"> |
54 | 31 | {%- if clarification.problem -%} |
55 | | - problem {{ clarification.contestProblem | problemBadge -}} |
| 32 | + {{ clarification.contestProblem | problemBadge -}} |
56 | 33 | {%- elseif clarification.category -%} |
57 | 34 | {{- categories[clarification.category]|default('general') -}} |
58 | 35 | {%- else -%} |
|
64 | 41 |
|
65 | 42 | <td> |
66 | 43 | <a data-ajax-modal data-ajax-modal-after="markSeen" href="{{ link }}"> |
67 | | - {{ clarification.summary | markdown_to_html | sanitize_html('app.clarification_sanitizer') }} |
| 44 | + {%- if clarification.sender is null and clarification.recipient is not null %} |
| 45 | + <i class="fa-solid fa-reply" title="Reply to you"></i> |
| 46 | + {%- endif %} |
| 47 | + <i>{{ clarification.summary |
| 48 | + | markdown_to_html |
| 49 | + | replace({'<p>': '', '</p>': ''}) |
| 50 | + | sanitize_html('app.clarification_sanitizer') |
| 51 | + | raw |
| 52 | + }}</i> |
68 | 53 | </a> |
69 | 54 | </td> |
70 | 55 | </tr> |
|
0 commit comments