{{ if ( eq ( .Scratch.Get "listMode" ) "current" ) }} {{ range ( sort $.Site.Data.tv_series.current "date_started" "desc" ) }} {{ with .date_added }} {{ time.Format "Jan 2, 2006" . }} {{ else }} n/a {{ end }} {{- with ( index . "name" ) -}} {{ . }} {{- end -}} {{- partial "books/rows/read-dates.html" . -}} {{ end }} {{ else if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }} {{ .Scratch.Set "filterCol" "date_finished" }} {{ .Scratch.Set "filterDir" "desc" }} {{ end }} {{ range ( sort $.Site.Data.tv_series.log ( .Scratch.Get "filterCol" ) ( .Scratch.Get "filterDir" ) ) }} {{ with .date_added }} {{ time.Format "Jan 2, 2006" . }} {{ else }} n/a {{ end }} {{- with ( index . "name" ) -}} {{ . }} {{- end -}} {{- partial "books/rows/read-dates.html" . -}} {{ end }} {{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }} {{ range ( sort $.Site.Data.tv_series.wishlist "name" "asc" ) }} {{ with .date_added }} {{ time.Format "Jan 2, 2006" . }} {{ else }} n/a {{ end }} {{- with ( index . "name" ) -}} {{ . }} {{- end -}} {{ end }} {{ end }}