-
Notifications
You must be signed in to change notification settings - Fork 5
/
js-templates.html
92 lines (84 loc) · 2.55 KB
/
js-templates.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
81
82
83
84
85
86
87
88
89
90
91
92
<script type="text/template" id="exp-uplink">
<li>
<a href="#" data-path="{{dataPath}}">
<i class="icon-chevron-up"></i>
<em>Go up one folder.</em>
</a>
</li>
</script>
<script type="text/template" id="exp-loading">
<li>
<a>Loading <i class="icon-refresh spin"></i></a>
</li>
</script>
<script type="text/template" id="exp-folders">
<% if (_.isUndefined(dirs)) { %>
<li>
<a><em>Can't list folder contents</em></a>
</li>
<% } else if (! dirs) { %>
<li>
<a><em>No more folders</em></a>
</li>
<% } else {
_.each(dirs, function(dir) { %>
<li class="folder">
<a href="#" data-path="{{dir}}">
<i class="icon-folder-open"></i>
{{basename(dir)}}
</a>
</li>
<% });
} %>
</script>
<script type="text/template" id="exp-select">
<li class="folder">
<a href="#">
<i class="icon-ok"></i>
<em>Select</em> {{path}}
</a>
</li>
</script>
<script type="text/template" id="moves-list">
<ul>
<% _.each(moves, function(move) {
var toFile = move.resolvedName || move.fromFile;
if (! move.hasCollision) {
%>
<li class="move-success">
Moved <code>{{move.fromFile}}</code> to <code>{{move.toDir}}/{{toFile}}</code>. ({{move.when}})
</li>
<% } else if (move.resolvedName) { %>
<li class="move-fail">
Moved <code>{{move.fromFile}}</code> to <code>{{move.toDir}}/{{toFile}}</code> since
there is already a file with the same name at the location. ({{move.when}})
</li>
<% } else { %>
<li class="move-fail">
Failed to move <code>{{move.fromFile}}</code> to <code>{{move.toDir}}/{{toFile}}</code> since
there is already a file with the same name at the location. ({{move.when}})
</li>
<% }
}); %>
</ul>
</script>
<script type="text/template" id="moves-empty">
<em>None yet. Create some rules and save files in your SortMyBox folder to get going.</em>
</script>
<script type="text/template" id="moves-error">
<em>Unable to load recent activity.</em>
</script>
<script type="text/template" id="moves-loading">
<em>Loading...</em><i class="icon-refresh spin"></i>
</script>
<script type="text/template" id="stats-chart">
<div class="row">
<div class="span12">
<h3>Scope: {{scope}} Value: {{column}}</h3>
<div class="chart {{scope}} {{column}}">
<svg></svg>
</div>
<hr>
</div>
</div>
</script>