~yerinalexey/gobin

ref: bc245cd30bacb7a8870453a34283fd3dd1b1bc78 gobin/templates/paste.html -rw-r--r-- 309 bytes
bc245cd3 — Alexey Yerin feat: show if paste is public or unlisted 6 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{{ define "paste" }}
<!DOCTYPE html>
<html>
  <head>
    {{ template "head" }}
  </head>
  <body>
    {{ template "header" }}

    <main>
      <p>Paste #{{ .Id }} {{if .Public}}[public]{{else}}[unlisted]{{end}}</p>

      <pre class="paste-text">{{ .Contents }}</pre>
    </main>
  </body>
</html>
{{ end }}