-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcollection_result_template.html
86 lines (72 loc) · 2.26 KB
/
collection_result_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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>YouTube Report</title>
<style>
h1 {
text-align: center;
flex: 1;
}
body {
font-family: "Roboto", sans-serif;
}
.header {
padding: 45.9px;
text-align: left;
background: rgb(17, 17, 17);
color: white;
display: flex;
align-items: center;
}
.discrepancy-highlight {
background-color: #33ECBE;
border-radius: 3px;
padding: 1px 3px;
}
.content {
padding: 10px 10px;
}
h2 {
background-color: rgb(65, 65, 65);
border-radius: 5px;
padding: 10px;
color: white;
}
h3 {
background-color: rgb(65, 65, 65);
border-radius: 5px;
padding: 10px;
color: white;
}
</style>
</head>
<body>
<div class="header">
<img src="{{ logo_path }}" style="width: 185px; height: 44px" alt="Logo">
<h1>{{ date_str }} Report</h1>
</div>
<div class="content">
{% for niche in niches %}
<h2>{{ niche.q }}: {{ niche.total_views_count | intcomma }} views</h2>
{% for video in niche.videos %}
<h4><a href="www.youtube.com/watch?v={{ video.id }}">{{ video.title }}</a></h4>
<ul>
<li><b>Release Date:</b> {{ video.release_date }}</li>
<li><b>Views:</b> {{ video.views | intcomma }}</li>
<li><b>Channel Name:</b> {{ video.channel.title }}</li>
<li><span class="{{ 'discrepancy-highlight' if video.discrepancy else '' }}"><b>Subscribers:</b> {{ video.channel.subscribers | intcomma }}</span></li>
<li><b>Channel Views:</b> {{ video.channel.views | intcomma }}</li>
<li><b>Country:</b> {{ video.channel.country }}</li>
</ul>
{% endfor %}
<h3>Title suggestions</h3>
<ul>
{% for title in niche.titles %}
<li><b>{{ title }}</b></li>
{% endfor %}
</ul>
{% endfor %}
</div>
</body>
</html>