summaryrefslogtreecommitdiff
path: root/views/inks.html
diff options
context:
space:
mode:
authorNicolas Sterchele <nicolas@sterchelen.net>2022-08-31 23:08:52 +0200
committerNicolas Sterchele <nicolas@sterchelen.net>2022-08-31 23:19:58 +0200
commitb9281c89737419216b710a87c31686d21adf86bc (patch)
treebc2b2c73b35ead61bee37b75aec1eee2d78c6ef4 /views/inks.html
initial commit
Thanks to Ted Unangst for its work. Originally available here https://humungus.tedunangst.com/r/inks
Diffstat (limited to 'views/inks.html')
-rwxr-xr-xviews/inks.html38
1 files changed, 38 insertions, 0 deletions
diff --git a/views/inks.html b/views/inks.html
new file mode 100755
index 0000000..e3e61b0
--- /dev/null
+++ b/views/inks.html
@@ -0,0 +1,38 @@
+{{ template "header.html" . }}
+<main>
+{{ if .PageInfo }}
+<div class="link">
+<div class="summary">
+<p>{{ .PageInfo }}
+</div>
+</div>
+{{ end }}
+{{ $csrf := .SaveCSRF }}
+{{ range .Links }}
+<article class="link">
+<p class="title">{{ .Title }}
+<p class="url"><a href="{{ .URL }}">{{ .URL }}</a> [<a href="/site/{{ .Site }}">{{ .Site }}</a>]
+<p>{{ .Posted.Format "2006-01-02 15:04" }}
+<p class="tags">tags:
+{{ range .Tags }}
+<a class="tag" href="/tag/{{ . }}">{{ . }}</a>
+{{ end }}
+<div class="summary">
+<p>
+{{ .Summary }}
+{{ if .Source }}
+<p>source: <a href="/source/{{ .Source }}">{{ .Source }}</a>
+{{ end }}
+</div>
+<div class="tail">
+<a href="/l/{{ .ID }}">#</a>
+{{ if $csrf }}
+<span style="margin-left:0.75em"><a href="/edit/{{ .ID }}">edit</a>
+</span>
+{{ end }}
+</div>
+</article>
+{{ end }}
+</main>
+</body>
+</html>