~oyvindsk/rss-web-reader

ref: 7176f0ce5798ec4374a5aea3af6e5b90a0123357 rss-web-reader/templates/show-all.html -rw-r--r-- 1.2 KiB
7176f0ce — Øyvind Skaar improved css a little with Tachyons 10 months ago
                                                                                
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
{{define "show-all"}}

<!DOCTYPE html>
<html lang="en">
	<head>
  		<title>RSS ftw</title>
  		<meta name="viewport" content="width=device-width, initial-scale=1">
  		<link rel="stylesheet" href="https://unpkg.com/tachyons/css/tachyons.min.css">
	</head>

	<body class="ma2 ma4-l">
		
		<p>Showing {{len .Items}} of {{.Cnt}} unseen</p>

		<form action="/seen" method="post">
			<input type="submit" value="Set all these {{len .Items}} as seen!">
		</form>
		
		
		<ul class="list pl0">
			{{range $i := .Items}}
				<li class="pa3 pa4-ns bb b--black-10">
					<b class="db f3 mb1">{{$i.FeedDesc}}</b>
					<b class="db f3 mb1"><a href="/show-one?guid={{$i.K.Name}}">{{$i.Title}}</a></b>
					<span class="f5 db lh-copy">
						<a href={{$i.Link}}>Post Link</a> || <a href={{$i.FeedURL}}>Feed Link</a> || Published: {{$i.PublishedParsed}} | Updated: {{$i.UpdatedParsed}} | FirstSeen: {{$i.FirstSeen}}
						<br>
						Categories: {{$i.Categories}}
						<br>
					</span>
				</li>
			{{end}}
		  </ul>


		<p>Showing {{len .Items}} of {{.Cnt}} unseen</p>

		<form action="/seen" method="post">
			<input type="submit" value="Set all these {{len .Items}} as seen!">
		</form>

	</body>
</html>
{{end}}