{{define "app_guide"}} {{template "layout_start" .}} {{template "app_shell_start" .}} {{/* „UTMUTATO" — the app's own copy, and the WHOLE page for an app that is not installed yet. It replaces the old details page: description and screenshots, what it is for, the first steps, the guide the catalog carries, the questions people ask, and the official documentation. THE GUIDE RENDERS ONLY WHEN ITS AUTHOR NAMED THE VERSION THEY CHECKED IT AGAINST (AppGuide.Rendered). A guide walking the household through a screen two releases old is worse than no guide, so an unchecked one is not shown and the page says a guide is still to come. Everything here is PLAIN TEXT through html/template. No markdown, no raw HTML: a step that contains a tag is shown as the characters the author typed. */}}
{{if not .Deployed}} {{/* The install button lives on this tab, because this tab IS the page for a not-installed app. The server refuses a non-installable template regardless; hiding the button keeps the page from offering an action that would be rejected. */}}
{{if canInstall .Meta}} {{T "app_info.telepites"}} {{else}}

{{T "app_page.not_installable"}}

{{end}}
{{end}}
{{if .AppInfo.UseCases}}

{{T "app_info.mire_hasznalhato"}}

{{end}} {{if .AppInfo.FirstSteps}}

{{T "app_info.elso_lepesek"}}

    {{range .AppInfo.FirstSteps}}
  1. {{.}}
  2. {{end}}
{{end}} {{if .AppInfo.Prerequisites}}

{{T "app_info.elofeltetelek"}}

{{end}}
{{/* THE GUIDE. */}} {{if .AppInfo.Guide.Rendered}}
{{- range .AppInfo.Guide.Sections}}

{{.Title}}

{{if .Intro}}

{{.Intro}}

{{end}} {{if .Steps}}
    {{- range .Steps}}
  1. {{.}}
  2. {{end}}
{{end}}
{{- end}} {{- if .AppInfo.Guide.FAQ}}

{{T "app_page.faq"}}

{{- range .AppInfo.Guide.FAQ}}
{{.Q}}
{{.A}}
{{- end}}
{{- end}}
{{else}}

{{T "app_page.guide_missing"}}

{{end}}
{{if .AppInfo.DocsURL}}

{{T "app_info.dokumentacio"}}

{{T "app_info.hivatalos_dokumentacio"}}

{{end}}
{{template "app_press_script" .}} {{template "layout_end" .}} {{end}}