~oyvindsk/rss-web-reader

ref: ea6bffa83a74846c5152b333f149c699ef41ccb3 rss-web-reader/templates/show-all.html -rw-r--r-- 737 bytes
ea6bffa8 — Øyvind Skaar sourcehut build, take1 (broken) 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
{{define "show-all"}}
<html>
	<body>
		<form action="/seen" method="post">
			<input type="submit" value="Set all these {{len .Items}} as seen!">
		</form>
		
		Showing {{len .Items}} of {{.Cnt}} unseen

		{{range $i := .Items}}
			<p>
				<h1><a href="/show-one?guid={{$i.K.Name}}">{{$i.Title}}</a></h1>
                <h2>{{$i.FeedDesc}}</h2> <a href={{$i.FeedURL}}>feed url</a> GUID: {{$i.K.Name}} <br>
				Published: {{$i.PublishedParsed}} | Updated: {{$i.UpdatedParsed}} | FirstSeen: {{$i.FirstSeen}} <br>
				Categories: {{$i.Categories}} <br>
			</p>
		{{end}}

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