-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.j2
87 lines (85 loc) · 3 KB
/
index.j2
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
<!DOCTYPE html>
<html>
<head>
<title>NEWS CLIP</title>
<link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.5/paper/bootstrap.min.css" rel="stylesheet" integrity="sha256-hMIwZV8FylgKjXnmRI2YY0HLnozYr7Cuo1JvRtzmPWs= sha512-k+wW4K+gHODPy/0gaAMUNmCItIunOZ+PeLW7iZwkDZH/wMaTrSJTt7zK6TGy6p+rnDBghAxdvu1LX2Ohg0ypDw==" crossorigin="anonymous">
<style>
.main {
padding-top: 100px;
}
.data-date {
width: 12rem;
}
.data-title {
width: auto;
}
.data-source {
text-align: right;
width: 12rem;
}
.data-checkbox {
text-align: right;
width: 30px;
}
</style>
</head>
<body>
<form action="/generate" method="post">
<header class="header">
<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-items" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">NEWS CLIP beta</a>
</div>
<div class="collapse navbar-collapse navbar-right" id="navbar-items">
<input type="submit" value="作成" class="btn btn-primary navbar-btn">
</div>
</div>
</nav>
</header>
<div class="main container">
{% for query in queries %}
<div class="panel panel-default">
<div class="panel-heading">
<div class="panel-title">
{{ query.decode('utf-8') }}
</div>
</div>
<div class="panel-body">
{% if entries[query] | length > 0 %}
<table class="table">
{% for entry in entries[query] %}
<tr>
<td class="data-date">{{ entry['date'] }}</td>
<td class="data-title">
<a href="{{ entry['link'] }}">
{{ entry['title'] }}
</a>
</td>
<td class="data-source">{{ entry['source'] }}</td>
<td class="data-checkbox">
<input type="checkbox" name="uuids" value="{{ entry['uuid'] }}">
</td>
</tr>
{% endfor %}
</table>
{% else %}
<div class="text-muted text-center">見つかりませんでした</div>
{% endif %}
</div>
</div>
{% endfor %}
</div>
<footer class="container">
</footer>
</form>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.4/jquery.min.js" charset="utf-8"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo= sha512-2e8qq0ETcfWRI4HJBzQiA3UoyFk6tbNyG+qSaIBZLyW9Xf3sWZHN/lxe9fTh1U45DpPf07yj94KsUHHWe4Yk1A==" crossorigin="anonymous"></script>
</body>
</html>