{{ define "title" }}Cars{{ end }} {{ define "content" }}

Cars & Setups

{{ if WriteAccess }}
Upload a New Car

You can upload multiple cars at once by placing them in a folder named "cars" and uploading the whole folder. The upload process will only take the files that the server requires, and so should not take too long. If you have issues uploading large numbers of cars at once please try uploading them in batches instead.

First choose the correct car folder (or containing folder) using the Choose a Folder button below then use the Upload Cars button to upload your cars if the preview information appears correctly.

The drag and drop input accepts a single car folder, multiple car folders or a cars folder containing multiple cars!

Choose a Folder
Or Drag & Drop Folder(s) Here
{{ end }} {{ $writeAccess := WriteAccess }} {{ if DeleteAccess }} {{ end }} {{ range $i, $car := .CarOpts }} {{ if DeleteAccess }} {{ end }} {{ end }}
# Car Name Tyres SkinsDelete
{{ $i }} {{ prettify $car.Name true }} {{ range $tyreShort, $tyreLong := $car.Tyres }} {{ $tyreLong }} ({{ $tyreShort }})
{{ end }}
{{ carList ($car.Skins | join ";")}}
{{ if WriteAccess }}
Upload a New Setup

The car model is determined automatically from the uploaded file.

{{ end }} {{ if DeleteAccess }} {{ end }} {{ range $car, $tracks := .FixedSetups }} {{ $setupIndex := 0 }} {{ $numSetupsForCar := 0}} {{ range $trackName, $setups := $tracks }} {{ range $index, $setup := $setups }} {{ $numSetupsForCar = add $numSetupsForCar 1 }} {{ end }} {{ end }} {{ range $trackName, $setups := $tracks }} {{ range $index, $setup := $setups }} {{ if eq $setupIndex 0 }} {{ end }} {{ if eq $index 0 }} {{ end }} {{ if DeleteAccess }} {{ end }} {{ $setupIndex = (add $setupIndex 1) }} {{ end }} {{ end }} {{ end }}
Car Track Setup FileDelete
{{ prettify $car true }} {{ prettify $trackName false }} {{ $setup }}
{{ end }}