forked from nealrs/twittersearchreport
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.html
99 lines (75 loc) · 2.32 KB
/
template.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Devpost Twitter Report</title>
<meta name="description" content="Devpost Twitter Report: {{client}}">
<meta name="author" content="Devpost">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.3/css/font-awesome.min.css">
<style>
body{
margin: 1.5em auto;
font-family: "Helvetica Neue", sans-serif;
color: #575553;
max-width: 1000px;
padding: 0 1em;
}
h1 {
font-size: 1.75em;
color: #003e54;
font-weight: bold;
line-height: 1.4;
margin: 0 0 0.8em 0;
}
.tweet {
padding: 1em;
border-bottom: 1px solid #f0f0f0;
}
.devpost-tweet {
background-color: #f0f0f0;
}
p {
font-size: 1em;
line-height: 1.6;
margin: 0 0 0.3em 0;
}
p:last-of-type {
margin: 0;
}
span.divider-dot {
margin: 0 0.3em;
color: #999794;
}
.handle {
font-weight: bold;
}
.fa-retweet {
color: #999794;
}
a { color: #2d9eb2; text-decoration: none; }
a:active, a:hover { color: #207180; }
img { border-radius:4px; }
</style>
<meta name="user-style-sheet" content="pdf.css">
</head>
<body>
<h1>Devpost Twitter Report: {{client}}</h1>
{% for tweet in data %}
{% if tweet.user != "devpost" %}
<div class="tweet">
{% else %}
<div class="tweet devpost-tweet">
{% endif %}
<p><a href="http://twitter.com/{{tweet.user}}" class="handle">@{{tweet.user}}</a> <span class="divider-dot">·</span> <a href="http://twitter.com/statuses/{{tweet.id}}">{{tweet.date}}</a> <span class="divider-dot">·</span> <i class="fa fa-retweet" aria-hidden="true"></i> {{tweet.rt}}</p>
<p>{{tweet.text}}</p>
</div>
{% endfor %}
<!-- JaVAVAVAVAVa -->
<!--<script src="js/scripts.js"></script>-->
<!-- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>-->
</body>
</html>