{{define "content"}}{{$a := .D.A}}{{$l := $a.Latest}}

{{$a.Category}}

{{if ne .D.Row.State "active"}}

This app is disabled: only you and the administrators see this page.

{{end}}
{{if $a.Icon}}{{else}}{{initial $a.Name}}{{end}}

{{$a.Name}}

by {{$a.Publisher}}{{if and $a.Author (ne $a.Author $a.Publisher)}} · written by {{$a.Author}}{{end}}

{{$a.Tagline}}

{{$r := $a.Ratings}}{{range reactions}}{{emoji .}}{{index $r .}}{{end}}
Install on the phone
Open the Store app and search for “{{$a.Name}}”.

Version {{$l.Version}} · {{size $l.Size}} download

{{if .D.Mine}}

Manage {{if .User.Admin}}Admin{{end}}

{{end}}
{{if eq $l.Sandbox "none"}} {{else if eq $l.Sandbox "account"}}
{{accountNote}}.
{{end}}
Download .love package {{if $l.Source}}Download source code{{end}}

Version {{$l.Version}} · {{size $l.Size}} ({{count $l.Size}} bytes)
SHA-256 {{$l.SHA256}}

{{if $a.Screenshots}}

Screenshots

{{range $a.Screenshots}}Screenshot{{end}}
{{end}}

About {{$a.Name}}

{{range paras $a.Description}}

{{.}}

{{else}}

{{$a.Tagline}}

{{end}}
{{if $l.Changelog}}

What's new in {{$l.Version}}

{{$l.Changelog}}

{{end}}

Permissions

{{if $l.Permissions}}{{else}}

This app asks for nothing beyond its own sandbox.

{{end}} {{if $l.Requires}}

Needs the package{{if gt (len $l.Requires) 1}}s{{end}}: {{join $l.Requires ", "}}

{{end}}

Licence and source code

{{$a.Name}} is released under {{$a.Licence}}.

{{if $l.Source}}Download source code {{$l.Source.Name}} · {{size $l.Source.Size}}{{else}}No source archive was published with this version.{{end}}

{{if $a.SourceRepo}}

Online repository: {{$a.SourceRepo}}

{{end}}

Version history

{{range .D.Versions}}
{{.Version}}{{date .Released}}{{if eq .Sandbox "none"}}⚠ {{unsandboxedWarning}}{{end}}
{{if .Changelog}}

{{.Changelog}}

{{end}} {{if eq .Sandbox "none"}}{{if .UnsandboxedReason}}

The developer's reason: “{{.UnsandboxedReason}}”

{{end}}{{end}}

{{size .Size}} ({{count .Size}} bytes)
SHA-256 {{.SHA256}}

{{end}}

Reviews {{.D.Reviews.Count}}

{{if .User}}{{if .D.Own}}

You publish this app, so you cannot review it.

{{else}}
{{$mine := .D.Reviews.Mine}}
{{range reactions}}{{end}}
{{if $mine}}{{end}}
{{end}} {{else}}

Sign in to react and review.

{{end}} {{$admin := and .User .User.Admin}}{{$csrf := .CSRF}}{{$id := $a.ID}} {{range .D.Reviews.Reviews}}
{{emoji .Rating}}{{.Author}}{{date .Date}}{{if .Version}}version {{.Version}}{{end}} {{if $admin}}
{{end}}
{{if .Body}}

{{.Body}}

{{end}}
{{else}}

No reviews yet.

{{end}}

{{if gt .D.Skip 0}}Newer {{end}}{{if .D.More}}Older{{end}}

{{end}}