bloat/templates/aboutinstance.tmpl

102 lines
2.7 KiB
Cheetah
Raw Normal View History

2022-10-12 10:34:41 +00:00
{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="page-title"> About {{.Instance.Title}} </div>
<div>
<p>
{{.Instance.Description}}
</p>
2022-10-12 22:41:34 +00:00
<p>
2022-10-16 14:02:17 +00:00
{{if .Instance.ShortDescription}}
{{Raw .Instance.ShortDescription}}
{{end}}
2022-10-12 22:41:34 +00:00
</p>
{{if .Instance.Rules}}
<p>
<details>
<summary>Rules</summary>
{{range .Instance.Rules}}
{{.id}}. {{.text}}<br><br>
{{end}}
</details>
</p>
{{end}}
2022-10-12 10:34:41 +00: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-12 22:41:34 +00:00
{{if .Instance.ContactAccount}}
<div class="page-title"> Contact account: {{.Instance.ContactAccount.Acct}} </div>
{{end}}
2022-10-12 10:34:41 +00: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-12 22:41:34 +00: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>
2023-11-10 23:59:32 +00:00
<h6> MRF Policies </h6>
{{range .Instance.Pleroma.MetaData.Federation.MrfPolicies}}{{.}}<br>{{end}}
<h6> Rejected instances </h6>
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.Reject}}{{.}}<br>{{end}}
<h6> Force NSFW instances </h6>
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.MediaNsfw}}{{.}}<br>{{end}}
<h6> Hiden from federated timeline instances </h6>
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.FederatedTimelineRemoval}}{{.}}<br>{{end}}
<h6> Rejected deletion activities </h6>
{{range .Instance.Pleroma.MetaData.Federation.MrfSimple.RejectDeletes}}{{.}}<br>{{end}}
2022-10-12 22:41:34 +00:00
{{end}}
<details>
<summary>Current peers ({{.Instance.Stats.DomainCount}})</summary>
{{range .Peers}}
{{.}}<br>
{{end}}
</details>
</div>
2022-10-12 10:34:41 +00:00
<div class="page-title"> Version: {{.Instance.Version}} </div>
{{template "footer.tmpl"}}
{{end}}