-
Notifications
You must be signed in to change notification settings - Fork 17
/
callins.html
80 lines (78 loc) · 2.84 KB
/
callins.html
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
77
78
79
80
<template name="callins">
<div class="row-fluid bb-puzzleround">
<section class="bb-quips">
<button class="btn btn-small bb-addquip-btn">Add new quip</button>
<h1>Quips</h1>
{{#if quips.count}}
<table class="table">
{{#each quips}}
{{> callins_quip }}
{{/each}}
</table>
{{else}}
No quips! <a class="quips-link" href="{{quipAddUrl}}">Add some</a>.
{{/if}}
</section>
<section class="bb-callin-queue">
<h1>Answer call-in queue</h1>
<table class="table"><tbody>
<tr>
<th>Puzzle</th>
<th>Answer</th>
<th>Proposed at</th>
<th>Last guess</th>
<th>Submitted to HQ</th>
<th align="center">Resolution</th>
</tr>
{{#each callins}}
{{> callin_row }}
{{else}}
<tr><td colspan="5">
No answers in the call-in queue.
</td></tr>
{{/each}}
</tbody></table>
</section>
</div>
</template>
<template name="callin_row">
<tr data-bbedit="{{_id}}">
<td>{{link id=target title="Chat room" chat=true icon="icon-comment" class="pull-right"}}{{link target}}{{#if hunt_link type target}}
<br/><small> ↦ <a href="{{hunt_link type target}}"
target="_blank">on hunt site</a></small>
{{/if}}</td>
<td><div class="answer">{{answer}}</div>{{#if backsolve}}(backsolve){{/if}}{{#if provided}}(provided){{/if}}</td>
<td>{{pretty_ts this.created}}</td>
<td>{{#with lastAttempt type target}}{{pretty_ts timestamp}} <small>({{pretty_ts timestamp=timestamp style="brief duration"}})</small>{{else}}-{{/with}}</td>
{{#if sessionNick}}
<td><input type="checkbox" class="bb-submitted-to-hq" checked={{submitted_to_hq}}></td>
<td class="btn-group">
<button class="btn btn-success bb-callin-correct">Correct</button>
<button class="btn btn-danger bb-callin-incorrect">Incorrect</button>
<button class="btn btn-warning bb-callin-cancel">Cancel</button>
</td>
{{else}}
<td class="text-warning">Log in to resolve answers in queue.</td>
{{/if}}
</tr>
</template>
<template name="callins_quip">
<tr class="bb-quip" data-bbquip="{{_id}}">
<td class="bb-quip-buttons">
<div class="btn-group">
{{#if currentPageEquals "callins"}}
<button class="btn btn-success bb-quip-next">Use</button>
{{/if}}
{{link id=_id text="Edit" class="btn" title=name}}
<button class="btn bb-quip-punt">Punt</button>
<!--<button class="btn bb-quip-remove">Remove</button>-->
</div>
</td>
<td class="bb-quiptext">
<blockquote>
{{text}}
<span class="bb-quip-created-by">{{created_by}} ({{pretty_ts created}})</span>
</blockquote>
</td>
</tr>
</template>