-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnews_template.tpl
41 lines (41 loc) · 1.66 KB
/
news_template.tpl
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
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.12/semantic.min.css"></link>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.12/semantic.min.js"></script>
</head>
<body>
<div class="ui container" style="padding-top: 10px;">
<table class="ui celled table">
<thead>
<th>Title</th>
<th>Author</th>
<th>#Likes</th>
<th>#Comments</th>
<th colspan="3">Label</th>
</thead>
<tbody>
%for row in rows:
<tr>
<td><a href="{{ row.url }}">{{ row.title }}</a></td>
<td>{{ row.author }}</td>
<td>{{ row.points }}</td>
<td>{{ row.comments }}</td>
<td class="positive"><a href="/add_label/?label=good&id={{ row.id }}">Like</a></td>
<td class="active"><a href="/add_label/?label=maybe&id={{ row.id }}">Neutral</a></td>
<td class="negative"><a href="/add_label/?label=never&id={{ row.id }}">Dislike</a></td>
</tr>
%end
</tbody>
<tfoot class="full-width">
<tr>
<th colspan="7">
<a href="/update" class="ui right floated small primary button">I Wanna more Hacker News!</a>
</th>
</tr>
</tfoot>
</table>
</div>
</body>
</html>