bloat/templates/aboutinstance.tmpl

96 lines
2.3 KiB
Cheetah
Raw Normal View History

2022-10-12 13:34:41 +03:00
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="page-title"> About {{.Instance.Title}} </div>
<div>
<p>
{{.Instance.Description}}
</p>
2022-10-13 01:41:34 +03:00
<p>
2022-10-16 17:02:17 +03:00
{{if .Instance.ShortDescription}}
{{Raw .Instance.ShortDescription}}
{{end}}
2022-10-13 01:41:34 +03:00
</p>
{{if .Instance.Rules}}
<p>
<details>
<summary>Rules</summary>
{{range .Instance.Rules}}
{{.id}}. {{.text}}<br><br>
{{end}}
</details>
</p>
{{end}}
2022-10-12 13:34:41 +03:00
<p>
<details>
<summary>Logo instance</summary>
<img src="{{.Instance.Thumbnail}}" height="512"></img>
</details>
</p>
</div>
<div class="page-title"> Contact E-mail: {{.Instance.EMail}} </div>
2022-10-13 01:41:34 +03:00
{{if .Instance.ContactAccount}}
<div class="page-title"> Contact account: {{.Instance.ContactAccount.Acct}} </div>
{{end}}
2022-10-12 13:34:41 +03:00
{{if .Instance.Stats}}
<div class="page-title"> Statistics: </div>
<div>
<p>
Domains federated: {{.Instance.Stats.DomainCount}}<br>
Registered users: {{.Instance.Stats.UserCount}}<br>
Statuses writen: {{.Instance.Stats.StatusCount}}<br>
</p>
</div>
{{end}}
<div class="page-title"> Features: </div>
<div>
{{if .Instance.Pleroma}}
{{range .Instance.Pleroma.MetaData.Features}}
{{.}}<br>
{{end}}
{{end}}
</div>
2022-10-13 01:41:34 +03:00
<div class="page-title"> Limits: </div>
{{if .Instance.Configuration}}
Max status characters: {{.Instance.Configuration.Statuses.MaxCharacters}}<br>
Max media attachments: {{.Instance.Configuration.Statuses.MaxMediaAttachments}}<br>
{{else}}
Max status characters: {{.Instance.MaxTootChars}}<br>
Max media attachments: {{.Instance.MaxMediaAttachments}}<br>
Max size attachment: {{.Instance.UploadLimit}} bytes<br>
{{end}}
{{if .Instance.PollLimits}}
Max poll options: {{.Instance.PollLimits.MaxOptions}}<br>
{{end}}
</div>
<div class="page-title"> Federation info: </div>
<div>
{{if .Instance.Pleroma}}
<div class="federation-enabled"> Federation enabled: {{.Instance.Pleroma.MetaData.Federation.Enabled}} </div>
<div class="mrf-policies"> MRF Policies </div>
{{range .Instance.Pleroma.MetaData.Federation.MrfPolicies}}
{{.}}<br>
{{end}}
{{end}}
<details>
<summary>Current peers ({{.Instance.Stats.DomainCount}})</summary>
{{range .Peers}}
{{.}}<br>
{{end}}
</details>
</div>
2022-10-12 13:34:41 +03:00
<div class="page-title"> Version: {{.Instance.Version}} </div>
{{template "footer.tmpl"}}
{{end}}