forked from electricdusk/rushlink
Put existing pages in templates
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
<title>{{block "title" .}}rushlink{{end}}</title>{{block "head-append" .}}{{end}}
|
||||
</head>
|
||||
<body>
|
||||
{{block "body" .}}{{end}}
|
||||
{{block "body" .}}
|
||||
<pre>
|
||||
{{call .Pre}}
|
||||
</pre>
|
||||
{{end}}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,8 +1,3 @@
|
||||
{{define "title"}}
|
||||
Error - rushlink
|
||||
{{end}}
|
||||
{{define "body"}}
|
||||
<pre>
|
||||
{{.Message}}
|
||||
</pre>
|
||||
{{end}}
|
||||
3
assets/templates/html/pasteMeta.html.tmpl
Normal file
3
assets/templates/html/pasteMeta.html.tmpl
Normal file
@@ -0,0 +1,3 @@
|
||||
{{define "title"}}
|
||||
'{{.Paste.Key}}' meta info - rushlink
|
||||
{{end}}
|
||||
5
assets/templates/txt/pasteMeta.txt.tmpl
Normal file
5
assets/templates/txt/pasteMeta.txt.tmpl
Normal file
@@ -0,0 +1,5 @@
|
||||
key: {{.Paste.Key}}
|
||||
type: {{.Paste.Type}}
|
||||
state: {{.Paste.State}}
|
||||
created: {{.Paste.TimeCreated}}
|
||||
owner: {{if .IsOwner}}yes{{else}}no{{end}}
|
||||
Reference in New Issue
Block a user