~evanj/cms

ref: 9d7fbcbdf7e7332ea56493092efe5cffbadccdd6 cms/internal/v/html/_footer.html -rw-r--r-- 5.1 KiB
9d7fbcbdEvan M Jones Fix(go.mod/vendor): Attempting to fix vendoring for deploys. 2 months ago
                                                                                
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<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>
            {{if and .User (.User | paid)}}
              <li class='nav-item'><a data-toggle="modal" data-target="#inviteModal" class='text-muted' href='#'>Invite</a></li>
            {{end}}
            <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/tour'>Tour</a></li>
          <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 and .User (.User | paid)}}
<form method=POST action='/invite' enctype='multipart/form-data'>
  <input type=hidden name=method value=POST />
  <input type=hidden name=method value="{{.User.Org.ID}}" />
  <div class="modal fade" id="inviteModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-dialog-scrollable">
      <div class="modal-content">
        <div class="modal-header">
          <h5 class="modal-title" id="exampleModalLabel">Invite someone to your space(s)</h5>
          <button type="button" class="close" data-dismiss="modal" aria-label="Close">
            <span aria-hidden="true">&times;</span>
          </button>
        </div>
        <div class="modal-body">
          <p>We'll generate a special link for you. Send this to your friend, 
          coworker, or whoever!</p>
          <p>The invite will only be active for one hour.</p>
        </div>
        <div class="modal-footer">
          <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
          <button type="submit" class="btn btn-primary">Go</button>
        </div>
      </div>
    </div>
  </div>
</form>
{{end}}

{{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}}