-
Notifications
You must be signed in to change notification settings - Fork 17
/
quip.html
55 lines (55 loc) · 1.83 KB
/
quip.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
<template name="quip">
<div class="row-fluid bb-puzzleround">
<section class="bb-quips">
{{#if idIsNew}}
<h2>Add new quip</h2>
<form class="bb-add-new-quip">
<fieldset>
<span class="help-block">
Give us a fun way for our duty officer to answer the Codex phone when HQ calls.
</span>
<textarea placeholder="Hello, this is Codex…" rows="3"></textarea><br/>
<button type="submit" class="btn">Submit</button>
</fieldset>
</form>
<h3>Recently added quips</h3>
<span class="help-block">Perhaps you could use some inspiration.</span>
<table class="table">
{{#each recentQuips}}{{> callins_quip }}{{/each}}
</table>
{{else}}{{#with quip}}
<button class="btn btn-small bb-addquip-btn">Add new quip</button>
<h2>Quip: {{name}}</h2>
<dl class="dl-horizontal {{#if canEdit}}bb-canEdit{{/if}}">
<dt>Text:</dt>
<dd class="bb-editable" data-bbedit="quips/{{_id}}/text">
{{#if editing "quips" _id "text" canEdit=true}}
<input type="text" id="quips-{{_id}}-text" value="{{text}}"
class="input-block-level" autofocus />
{{else}}
<i class="bb-edit-icon icon-pencil pull-right" title="Edit this quip"></i>
{{text}}
{{/if}}
</dd>
<dt>Used:</dt><dd>
{{#if use_count}}
{{use_count}} times, last at {{pretty_ts last_used}}
{{else}}
never
{{/if}}
</dd>
<dt>Created by:</dt><dd><span title="{{nickOrName created_by}}">{{created_by}}</span> at {{pretty_ts created}}</dd>
</dl>
{{> blackboard_tags }}
<div class="btn-group">
<!--
<button class="btn bb-quip-edit-btn">Edit quip</button>
<button class="btn bb-quip-tag-add-btn">Add tag</button>
<button class="btn bb-quip-tag-edit-btn">Edit tag</button>
-->
<button class="btn bb-quip-delete-btn btn-danger">Delete quip</button>
</div>
{{/with}}{{/if}}
</section>
</div>
</template>