bloat/templates/aboutinstance.tmpl

94 lines
2.2 KiB
Cheetah

{{with .Data}}
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
<div class="page-title"> About {{.Instance.Title}} </div>
<div>
<p>
{{.Instance.Description}}
</p>
<p>
{{Raw .Instance.ShortDescription}}
</p>
{{if .Instance.Rules}}
<p>
<details>
<summary>Rules</summary>
{{range .Instance.Rules}}
{{.id}}. {{.text}}<br><br>
{{end}}
</details>
</p>
{{end}}
<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>
{{if .Instance.ContactAccount}}
<div class="page-title"> Contact account: {{.Instance.ContactAccount.Acct}} </div>
{{end}}
{{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>
<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>
<div class="page-title"> Version: {{.Instance.Version}} </div>
{{template "footer.tmpl"}}
{{end}}