aboutsummaryrefslogtreecommitdiff
path: root/views/index.tpl
blob: b08ce0f205461aaacd13ce697a16e7c4c0d926e1 (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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>View Feeds</title>
</head>
<body>
    <table>
        <tr>
            <th>Title</th>
            <th>Date</th>
        </tr>
        % for i, item in enumerate(reversed(items)):
            <tr>
                <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>
            </tr>
        % end
    </table>
</body>
</html>