summaryrefslogtreecommitdiff
path: root/web/template/about.tmpl
blob: 37d115256ac345d6c5daf07511c24ca85e6c5596 (plain)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
{{- /*
// GoToSocial
// Copyright (C) GoToSocial Authors admin@gotosocial.org
// SPDX-License-Identifier: AGPL-3.0-or-later
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/ -}}

{{- define "description" -}}
{{- if .instance.Description }}
{{ .instance.Description | noescape }}
{{- else }}
<p>No description has yet been set for this instance.</p>
{{- end }}
{{- end -}}

{{- define "termsAndConditions" -}}
{{- if .instance.Terms }}
{{ .instance.Terms | noescape }}
{{- else }}
<p>No terms and conditions have yet been set for this instance.</p>
{{- end }}
{{- end -}}

{{- define "languages" -}}
{{- if .languages }}
<p>This instance prefers the following languages:</p>
<ol>
    {{- range .languages }}
    <li>{{- . -}}</li>
    {{- end }}
</ol>
{{- else }}
<p>No preferred languages have yet been set for this instance.</p> 
{{- end }}
{{- end -}}

{{- define "rules" -}}
{{- if .instance.Rules }}
<p>This instance has the following rules:</p>
<ol>
    {{- range .instance.Rules }}
    <li>{{- .Text -}}</li>
    {{- end }}
</ol>
{{- else }}
<p>No rules have yet been set for this instance.</p>
{{- end }}
{{- end -}}

{{- define "customCSSLimits" -}}
<a href="https://docs.gotosocial.org/en/latest/user_guide/settings/#custom-css" target="_blank" rel="noopener noreferrer">Custom CSS</a> is&nbsp;
{{- if .instance.Configuration.Accounts.AllowCustomCSS -}}
<b>enabled</b>
{{- else -}}
</b>disabled</b>
{{- end -}}
&nbsp;on account profiles.
{{- end -}}

{{- define "statusLimits" -}}
Statuses can contain up to
<b>{{- .instance.Configuration.Statuses.MaxCharacters }} characters</b>, and
<b>{{- .instance.Configuration.Statuses.MaxMediaAttachments }} media attachments</b>.
{{- end -}}

{{- define "pollLimits" -}}
Polls can have up to
<b>{{- .instance.Configuration.Polls.MaxOptions }} options</b>, with
<b>{{- .instance.Configuration.Polls.MaxCharactersPerOption }} characters per option</b>.
{{- end -}}

{{- with . }}
<main class="about">
    <nav class="about-section" aria-labelledby="toc">
        <h3 id="toc">Table of Contents</h3>
        <div class="about-section-contents">
            <ol>
                <li><a href="#about">About {{ .instance.Title -}}</a></li>
                <li><a href="#contact">Contact</a></li>
                <li><a href="#features">Features</a></li>
                <li><a href="#languages">Languages</a></li>
                <li><a href="#signup">Register an Account on {{ .instance.Title -}}</a></li>
                <li><a href="#rules">Rules</a></li>
                <li><a href="#terms">Terms and Conditions</a></li>
                <li><a href="#moderated-servers">Moderated Servers</a></li>
            </ol>
        </div>
    </nav>
    <section class="about-section" role="region" aria-labelledby="about">
        <h3 id="about">About {{ .instance.Title -}}</h3>
        <div class="about-section-contents">
            {{- with . }}
            {{- include "description" . | indent 3 }}
            {{- end }}
        </div>
    </section>
    <section class="about-section" role="region" aria-labelledby="contact">
        <h3 id="contact">Admin Contact</h3>
        <div class="about-section-contents">
            {{- if .instance.ContactAccount }}
            <a href="{{- .instance.ContactAccount.URL -}}" class="account-card">
                <img class="avatar" src="{{- .instance.ContactAccount.Avatar -}}" alt=""/>
                <h3>
                    {{- if .instance.ContactAccount.DisplayName -}}
                    {{- emojify .instance.ContactAccount.Emojis (escape .instance.ContactAccount.DisplayName) -}}
                    {{- else -}}
                    {{- .instance.ContactAccount.Username -}}
                    {{- end -}}
                </h3>
                <span>@{{- .instance.ContactAccount.Username -}}</span>
            </a>
            {{- else }}
            <p>This instance has not yet set a contact account.</p>
            {{- end }}
            {{- if .instance.Email }}
            <p>Email: <a href="mailto:{{- .instance.Email -}}">{{- .instance.Email -}}</a></p>
            {{- else }}
            <p>This instance has not yet set a contact email address.</p>
            {{- end }}
        </div>
    </section>
    <section class="about-section" role="region" aria-labelledby="features">
        <h3 id="features">Instance Features</h3>
        <div class="about-section-contents">
            <ul>
                <li>{{- template "statusLimits" . -}}</li>
                <li>{{- template "pollLimits" . -}}</li>
                <li>{{- template "customCSSLimits" . -}}</li>
            </ul>
        </div>
    </section>
    <section class="about-section" role="region" aria-labelledby="languages">
        <h3 id="languages">Languages</h3>
        <div class="about-section-contents">
            {{- with . }}
            {{- include "languages" . | indent 3 }}
            {{- end }}
        </div>
    </section>
    {{- include "index_register.tmpl" . | indent 1 }}
    <section class="about-section" role="region" aria-labelledby="rules">
        <h3 id="rules">Instance Rules</h3>
        <div class="about-section-contents">
            {{- with . }}
            {{- include "rules" . | indent 3 }}
            {{- end }}
        </div>
    </section>
    <section class="about-section" role="region" aria-labelledby="terms">
        <h3 id="terms">Terms and Conditions</h3>
        <div class="about-section-contents">
            {{- with . }}
            {{- include "termsAndConditions" . | indent 3 }}
            {{- end }}
        </div>
    </section>
    <section class="about-section" role="region" aria-labelledby="moderated-servers">
        <h3 id="moderated-servers">Moderated servers</h3>
        <div class="about-section-contents">
            <p>
                ActivityPub instances federate with other instances by exchanging data with them over the network.
                Exchanged data includes things like accounts, statuses, likes, boosts, and media attachments.
                This exchange of data can be prevented for instances on specific domains via a domain block created
                by an instance admin. When an instance is domain blocked by another instance:
            </p>
            <ul>
                <li>Any existing data from the blocked instance is deleted from the storage of the instance doing the blocking.</li>
                <li>Interaction between the two instances is cut off in both directions; neither instance can interact with the other.</li>
                <li>No new data from the blocked instance will be created on the instance that blocks it.</li>
            </ul>
            <p>
                {{- if .blocklistExposed }}
                <a href="/about/suspended">View the list of domains blocked by this instance</a>
                {{- else }}
                This instance does not publically share their list of blocked domains.
                {{- end }}
            </p>
        </div>
    </section>
</main>
{{- end }}