blob: 351ba5f757c6ac2b03201e916f52a44893e09f59 (
plain)
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
|
pub const OPT_TEMPLATE: &'static str =
"<!DOCTYPE html> <html> <title>{{title}}</title> <style type=\"text/css\"> * { padding:0; margin:0; } body { color: #333; font: 14px Sans-Serif; padding: 50px; background: #eee; } h1 { text-align: center; padding: 20px 0 12px 0; margin: 0; } h2 { font-size: 16px; text-align: center; padding: 0 0 12px 0; } #container { box-shadow: 0 5px 10px -5px rgba(0,0,0,0.5); position: relative; background: white; } table { background-color: #F3F3F3; border-collapse: collapse; width: 100%; margin: 15px 0; } th { background-color: #215fa4; color: #FFF; cursor: pointer; padding: 5px 10px; } th small { font-size: 9px; } td, th { text-align: left; } a { text-decoration: none; } td a { color: #001c3b; display: block; padding: 5px 10px; } th a { padding-left: 0 } tr:nth-of-type(odd) { background-color: #E6E6E6; } tr:hover td { background-color:#CACACA; } tr:hover td a { color: #000; } </style> <body> <div id=\"container\"> <h1>{{title}}</h1> <table> <thead> <tr> <th>Name</th> <th>Size</th> </tr> </thead> <tbody> {{#content}} <tr> <td> <a href=\"/{{url}}\">{{name}}</a> </td> <td> {{size}} </td> </tr> {{/content}} </tbody> </table> </div> </body> </html>";
pub const TEMPLATE: &'static str =
"<!DOCTYPE html>
<html>
<title>{{title}}</title>
<style type=\"text/css\">
* {
padding:0;
margin:0;
}
body {
color: #333;
font: 14px Sans-Serif;
padding: 50px;
background: #eee;
}
h1 {
text-align: center;
padding: 20px 0 12px 0;
margin: 0;
}
h2 {
font-size: 16px;
text-align: center;
padding: 0 0 12px 0;
}
#container {
box-shadow: 0 5px 10px -5px rgba(0,0,0,0.5);
position: relative;
background: white;
}
table {
background-color: #F3F3F3;
border-collapse: collapse;
width: 100%;
margin: 15px 0;
}
th {
background-color: #215fa4;
color: #FFF;
cursor: pointer;
padding: 5px 10px;
}
th small {
font-size: 9px;
}
td, th {
text-align: left;
}
a {
text-decoration: none;
}
td a {
color: #001c3b;
display: block;
padding: 5px 10px;
}
th a {
padding-left: 0
}
tr:nth-of-type(odd) {
background-color: #E6E6E6;
}
tr:hover td {
background-color:#CACACA;
}
tr:hover td a {
color: #000;
}
</style>
<body>
<div id=\"container\">
<h1>{{title}}</h1>
<table>
<thead>
<tr>
<th>Name</th>
<th>Size</th>
</tr>
</thead>
<tbody>
{{#content}}
<tr>
<td>
<a href=\"/{{url}}\">{{name}}</a>
</td>
<td>
{{size}}
</td>
</tr>
{{/content}}
</tbody>
</table>
</div>
</body>
</html>";
|