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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<div class=container>
<footer class="pt-4 my-md-5 pt-md-5 border-top">
<div class="row">
<div class="col-6 col-md-3 offset-md-3 text-md-right">
<h5>Navigation</h5>
<ul class="list-unstyled text-small">
{{ if .Space }}
<li><a class='text-muted' href='/'>Home</a></li>
{{ end }}
{{ if .ContentType }}
<li><a class='text-muted' href='/space/{{ .Space.ID }}'>{{ .Space.Name }}</a></li>
{{ end }}
{{ if .Hook }}
<li><a class='text-muted' href='/space/{{ .Space.ID }}'>{{ .Space.Name }}</a></li>
{{ end }}
{{ if .Content }}
<li><a class='text-muted' href='/contenttype/{{ .Space.ID}}/{{ .ContentType.ID }}'>{{ .ContentType.Name }}</a></li>
{{ end }}
{{ if and .Space (not .ContentType) (not .Hook) }}
<li><a data-toggle="modal" data-target="#copyModal" class='text-muted' href='#'>Copy</a></li>
<li><a data-toggle="modal" data-target="#updateModal" class='text-muted' href='#'>Update</a></li>
<li><a data-toggle="modal" data-target="#deleteModal" class='text-muted' href='#'>Delete</a></li>
{{ end }}
{{ if and .ContentType (not .Content) }}
<li><a data-toggle="modal" data-target="#updateModal" class='text-muted' href='#'>Update</a></li>
<li><a data-toggle="modal" data-target="#deleteModal" class='text-muted' href='#'>Delete</a></li>
{{ end }}
{{ if .Content }}
<li><input type=submit class="text-decoration-none m-0 p-0 btn btn-link text-muted border-0" value=Save /></li>
<li><a data-toggle="modal" data-target="#deleteModal" class='text-muted' href='#'>Delete</a></li>
{{ end }}
{{ if .Hook }}
<li><a data-toggle="modal" data-target="#deleteModal" class='text-muted' href='#'>Delete</a></li>
{{ end }}
{{ if .User }}
<li>
<form method=POST action='/user/logout' enctype='multipart/form-data'>
<input type=submit class="text-decoration-none m-0 p-0 btn btn-link text-muted border-0" value=Logout />
</form>
</li>
<li><a class='text-muted' href='/page/billing'>Billing</a></li>
{{ else }}
<li><a class='text-muted' href='/'>Home</a></li>
<li><a class='text-muted' href='/#signup'>Signup</a></li>
<li><a class='text-muted' href='/#login'>Login</a></li>
{{ end}}
<li><a class='text-muted' href='//git.sr.ht/~evanj/cms'>Source</a></li>
<li><a class='text-muted' href='//git.sr.ht/~evanj/cms/tree/master/LICENSE'>License</a></li>
</ul>
</div>
<div class="col-6 col-md-3">
<h5>Resources</h5>
<ul class="list-unstyled text-small">
{{if .User}}
<li><a class='text-muted' href='/page/billing'>Billing</a></li>
{{else}}
<li><a class='text-muted' href='/#pricing'>Pricing</a></li>
{{end}}
<li><a class='text-muted' href='/page/doc'>Docs</a></li>
<li><a class="text-muted" href="/page/faq">FAQ</a></li>
<li><a class="text-muted" href="/page/terms">Terms</a></li>
<li><a class="text-muted" href="/page/privacy">Privacy</a></li>
<li><a class="text-muted" href="/page/contact">Contact</a></li>
</ul>
</div>
</div>
<div class=row>
<p class='text-muted text-center mt-5 w-100 text-truncate overflow-hidden'>v.{{.Build}}</p>
</div>
</footer>
</div>
{{if .A}}
<img style='position: fixed; bottom: 0; right: 0;' src="//skippercms.goatcounter.com/count?p={{.A.Path}}{{if .A.Referrer}}&r={{.A.Referrer}}{{end}}&rnd={{.A.RND}}">
{{end}}