/
index.html
75 lines (73 loc) · 3.55 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>action!</title>
<link href="css/screen.css" media="screen, projection" rel="stylesheet" type="text/css" />
<link href="css/print.css" media="print" rel="stylesheet" type="text/css" />
<!--[if lt IE 8]>
<link href="css/ie.css" media="screen, projection" rel="stylesheet" type="text/css" />
<![endif]-->
<link rel="shortcut icon" href="favicon.ico" />
</head>
<body class="bp">
<div id="container">
<div id="header">
<h1><a href="#/">action</a> <em>/</em><span class='search-type'></span><em>/</em><span class='search-token'></span><em>=></em></h1>
<div id="loading" style="display:none"><img src="images/loader.gif" alt="loading" /></div>
<ul class="menu">
<li><a href="#/review" class="review">review</a></li>
<li><a href="#/asleep">asleep</a></li>
<li><a href="#/archive">archive</a></li>
<li><a href="#/replicate">replicate</a></li>
</ul>
</div>
<div id="main">
</div>
<div id="footer">© 2010 Aaron Quint, Quirkey NYC, LLC</div>
</div>
<div id="templates" style="display:none;">
<div class="action-index">
<div class="action-form">
<form class="bp" action="#/action" method="post">
<input name="action[content]" class="content-input" autocomplete="off">
<div class="buttons">
<input type="submit" name="save" value="> save">
<!-- <a href="" class="cancel">cancel</a> -->
</div>
</form>
<div class="action-preview"></div>
</div>
<div class="actions"></div>
</div>
<div id="replicator" class="action-replicator">
<h2>Replicate</h2>
<p>Copy this instance of Action and all of it's data to another CouchDB.</p>
<p>Usage: Create an empty database on another Couch and enter the URL to that database into the <strong>target</strong> field in the format: <pre>http://user:pass@couch/database</pre> If you omit the user/pass the Action application will not be copied to the new Couch, just the data.</p>
<form class="bp replicator-form" action="#/replicate" method="post">
<p class="hidden"><label>Source</label><input name="source" value="action"/></p>
<p><label>Target</label><input class="target" name="target" value="http://"/></p>
<p><input type="submit" value="replicate"></p>
</form>
</div>
<script id="action-template" type="text/mustache" data-engine="mustache">
<div class="action{{#completed}} complete{{/completed}}{{#sleeping}} sleeping slept-{{slept_count}}{{/sleeping}}" data-slept-count="{{slept_count}}" data-id="{{_id}}">
<div class="controls">
<input type="checkbox" class="completed" name="completed" {{#completed}}checked="checked"{{/completed}} />
</div>
<div class="content">
{{#parsed_html}}{{{parsed_html}}}{{/parsed_html}}{{^parsed_html}}{{content}}{{/parsed_html}}
</div>
<ul class="meta">
{{#completed}}<li class="completed_at"><strong>Completed</strong> <span class="timestr">{{completed_at}}</span></li>{{/completed}}
{{^completed}}
<li><a href="{{path}}" class="sleep-action" data-id="{{_id}}" data-slept-count="{{slept_count}}">zZz</a></li>
<li><a href="{{path}}" class="edit-action" data-id="{{_id}}">Edit</a></li>
{{/completed}}
<li class="updated_at"><strong>Updated</strong> <span class="timestr">{{updated_at}}</span></li>
</ul>
</div>
</script>
</div>
<script src="js/default.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>