/
index.html
122 lines (74 loc) · 3.01 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<style type="text/css">
.line {position: relative;}
.preview-cover {position: absolute;top:0;left: 0;right: 0;bottom: 0}
.preview-button, .line form button {
margin: -12px 0;
padding: 11px 0;
color: #365899;
display: inline-block;
}
.preview-button {margin-right: -9px;margin-left: 11px}
.preview-button .square, .line form button .square {
padding: 4px 10px;
border-radius: 4px;
display: block;
}
.line form button:disabled .square,
.line form button:disabled:hover .square {
background: rgba(0,0,0,0.08);
color: #999
}
.line.theme:hover {background: rgba(0,0,0,0.02)}
.preview-button, .line form {float: right;}
.preview-cover:hover + .preview-button .square,
.preview-button:hover .square,
.line form button:hover .square {background: #365899;color:white;}
.butty {color:#365899;padding: 10px 20px;float: right;margin-right: -20px;margin-top: -10px}
.butty:hover {background: rgba(0,0,0,.05)}
</style>
<input type="hidden" name="redirect" value="/theme">
{{^blog.template}}
<div class="line" style="border-bottom:none">
<span class="box orange fr" style="line-height:2.5;background:#f2f2f2;padding:0 1.33em;border:#aaa;margin:0 0">Your theme is disabled. </span>
<form method='post' style="display:inline">
<input type="hidden" name="_csrf" value="{{csrftoken}}">
<input type="hidden" name="template" value="SITE:default" >
<button type="submit"><span class="square">Enable your theme</span></button>
</form>
</div>
{{/blog.template}}
{{#blog.template}}
<div class="line">
<p>
<b style="font-weight:500">{{blog.title}}</b> uses the <b style="font-weight:500">{{#templates}} {{#checked}}{{name}}{{/checked}}{{/templates}}</b> theme.</p>
<Br>
<span style="color:rgb(153, 153, 153)">Your themes <a class="butty" href="/settings/theme/new">Create new theme</a>
</span>
</div>
{{#templates}}
<div class="line theme {{checked}}">
{{name}}
<!-- <img style="max-width:48px;vertical-align:middle;margin-left:1em" src="/images/templates/{{nameLower}}.jpg">
-->
<a target="_blank" class="preview-cover" href="{{previewURL}}"></a>
<a href="{{previewURL}}" class="preview-button" target="_blank" ><span class="square">Preview</span></a>
<form method='post' style="display:inline">
<input type="hidden" name="_csrf" value="{{csrftoken}}">
<input type="hidden" name="template" value="{{id}}" >
<button {{#checked}}disabled{{/checked}} type="submit"><span class="square">Install</span></button>
</form>
{{#isMine}}
<a href="{{editURL}}/settings" style="margin-right:0;padding-right:11px" class="preview-button" ><span class="square">Edit</span></a>
{{/isMine}}
<div class="clear"></div>
</div>
<div class="clear"></div>
{{/templates}}
<br><div class="line">
<form method='post' style="float:left">
<input type="hidden" name="redirect" value="/settings/theme">
<input name="template" value="" type="hidden"/>
<button type="submit">Disable your theme</button>
</form>
</div>
{{/blog.template}}