{{/* gotype: github.com/cj123/assetto-server-manager.trackDetailsTemplateVars */}} {{ define "title" }}{{ $.Track.Name }}{{ end }} {{ define "content" }}

{{ $.Track.Name }}

{{ with $.Track.MetaData.Notes }}

Notes

{{ trustHTML . }}

{{ end }} {{ with $.Track.MetaData.DownloadURL }}
Download
{{ end }}

Layouts

{{ range $index, $layout := $.Track.Layouts }}
{{ $.Track.PrettyName }}, layout {{ $layout }}

{{ prettify $layout true }} Layout

{{ $info := index $.TrackInfo $layout }}
{{ $info.City }} {{ $info.Country }}
Length: {{ $info.Length }} Run: {{ $info.Run }} Width: {{ $info.Width }} Pitboxes: {{ $info.Pitboxes }}
Geotags: {{ stringArrayToCSV $info.Geotags }}
Tags: {{ stringArrayToCSV $info.Tags }}

{{ $info.Description }}


Sessions

{{ $results := index $.Results $layout }}

This layout has been used in {{ len $results}} sessions.

{{ end }} {{ if WriteAccess }}
Track Metadata
Download links for tracks will be shown in Content Manager's server information screen.
{{ with $.Track.MetaData.Notes }}
{{ trustHTML . }}
{{ end }}
Notes will be shown to all users when they visit this track page.
{{ end }} {{ if DeleteAccess }}
Danger Zone!

Permanently delete this track and all associated layouts.

Delete Track
{{ end }}
{{ end }}