2022-12-13 15:59:28 +00:00
|
|
|
{{template "header" .}}
|
|
|
|
|
2023-02-22 14:27:53 +00:00
|
|
|
<script src="/static/js/prism.js"></script>
|
|
|
|
|
2023-02-22 15:36:26 +00:00
|
|
|
{{if .UserInfo}}
|
|
|
|
{{if ne .PasterUserID .UserID}}
|
2023-01-17 15:52:00 +00:00
|
|
|
<div class="right">{{.PasterDisplayName}} <img style="width:32px;height:32px" src="{{.PasterProfilePicURL}}" /></div>
|
2023-02-22 15:36:26 +00:00
|
|
|
{{end}}
|
|
|
|
{{else}}
|
|
|
|
<div class="right">{{.PasterDisplayName}} <img style="width:32px;height:32px" src="{{.PasterProfilePicURL}}" /></div>
|
|
|
|
{{end}}
|
2022-12-15 18:47:09 +00:00
|
|
|
|
2023-01-17 15:52:00 +00:00
|
|
|
<p>Created at {{.CreatedAt}}</p>
|
2022-12-14 18:31:08 +00:00
|
|
|
|
2023-02-23 19:53:49 +00:00
|
|
|
{{if .RawHTML}}
|
2023-02-24 15:18:32 +00:00
|
|
|
<article>
|
2023-02-23 19:53:49 +00:00
|
|
|
{{.RawHTML}}
|
2023-02-24 15:18:32 +00:00
|
|
|
</article>
|
2023-02-23 19:53:49 +00:00
|
|
|
<br />
|
|
|
|
{{else}}
|
2023-02-22 14:27:53 +00:00
|
|
|
<div style="display:inline-block;">
|
|
|
|
<pre><code class="{{.CSSClass}}">{{.Data}}
|
2022-12-13 15:59:28 +00:00
|
|
|
</code></pre>
|
2023-02-22 14:27:53 +00:00
|
|
|
</div>
|
2023-02-24 17:13:34 +00:00
|
|
|
<br />
|
2023-02-23 19:53:49 +00:00
|
|
|
{{end}}
|
2022-12-13 15:59:28 +00:00
|
|
|
|
2023-02-24 17:13:34 +00:00
|
|
|
<a href="/paste/{{.ID}}">Permalink</a> - <a href="/paste/{{.ID}}/dl">Download</a> - <a href="/paste/{{.ID}}/raw">Raw</a>{{if .RawHTML}} - <a href="/paste/{{.ID}}/md">Fancy</a>{{end}}{{if eq .UserID .PasterUserID}} - <a href="/api/delete/{{.ID}}">Delete</a>{{end}}
|
2023-02-22 15:36:26 +00:00
|
|
|
|
2022-12-13 15:59:28 +00:00
|
|
|
{{template "footer" .}}
|