blob: d52181002c707750647f65fbcad1549e75fb9427 (
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
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>View Feeds | TagRSS</title>
<link href="/static/styles/main.css" rel="stylesheet">
</head>
<body>
<h1>TagRSS</h1>
<nav>
<p><a href="/add_feed">Add feed</a></p>
</nav>
<table>
<thead>
<tr>
<th>#</th>
<th>Title</th>
<th>Date</th>
<th>Tags</th>
</tr>
</thead>
<tbody>
% for i, item in enumerate(reversed(items)):
<tr>
<td>{{i + 1}}</td>
<td><a href="{{item["link"]}}">{{item["title"]}}</a></td>
<%
dates = []
if item.get("date_published", None):
dates.append(item["date_published"])
end
if item.get("date_updated", None):
dates.append(item["date_updated"])
end
%>
<td>
{{", updated ".join(dates)}}
</td>
<td>
{{", ".join(item["feed"]["tags"])}}
</td>
</tr>
% end
</tbody>
</table>
</body>
</html>
|