81 lines
2.4 KiB
HTML
81 lines
2.4 KiB
HTML
{{ if ( eq ( .Scratch.Get "listMode" ) "log" ) }}
|
|
<tr>
|
|
<td colspan=4><h3>Diary</h3></td>
|
|
</tr>
|
|
{{ range ( sort ( where $.Site.Data.films.log "date_finished" "!=" "" ) "date_finished" "desc" ) }}
|
|
<tr>
|
|
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
|
|
|
<td>
|
|
{{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}}
|
|
|
|
{{- with .comments -}}
|
|
<p class="comments">Comments: {{ . }}</p>
|
|
{{- end -}}
|
|
</td>
|
|
|
|
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
|
|
|
<td>
|
|
{{- if .date_finished -}}
|
|
{{- time.Format "Jan 2, 2006" .date_finished -}}
|
|
{{- if .is_repeat }} ↻{{ end -}}
|
|
{{- else -}}
|
|
n/a
|
|
{{- end -}}
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
<tr>
|
|
<td colspan=4><h3>Assorted</h3></td>
|
|
</tr>
|
|
{{ range ( sort ( where $.Site.Data.films.log "date_finished" "" ) "title" "asc" ) }}
|
|
<tr>
|
|
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
|
|
|
<td>
|
|
{{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}}
|
|
|
|
{{- with .comments -}}
|
|
<p class="comments">Comments: {{ . }}</p>
|
|
{{- end -}}
|
|
</td>
|
|
|
|
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
|
|
|
<td>
|
|
{{- if .date_finished -}}
|
|
{{- time.Format "Jan 2, 2006" .date_finished -}}
|
|
{{- if .is_repeat }} ↻{{ end -}}
|
|
{{- else -}}
|
|
n/a
|
|
{{- end -}}
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ else if ( eq ( .Scratch.Get "listMode" ) "wishlist" ) }}
|
|
{{ range ( sort $.Site.Data.films.wishlist "title" "asc" ) }}
|
|
<tr>
|
|
<td>{{ with .date_added }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
|
|
|
<td>
|
|
{{- partial "cite" ( dict "c" . "g" $ "section" "films" "schemaType" "Movie" "title" .title "titleLang" .original_language "titleTrans" .original_title ) -}}
|
|
|
|
{{- with .comments -}}
|
|
<p class="comments">Comments: {{ . }}</p>
|
|
{{- end -}}
|
|
</td>
|
|
|
|
<td>{{ with .release_date }}{{ time.Format "Jan 2, 2006" . }}{{ end }}</td>
|
|
|
|
<td>
|
|
{{- if .date_finished -}}
|
|
{{- time.Format "Jan 2, 2006" .date_finished -}}
|
|
{{- if .is_repeat }} ↻{{ end -}}
|
|
{{- else -}}
|
|
n/a
|
|
{{- end -}}
|
|
</td>
|
|
</tr>
|
|
{{ end }}
|
|
{{ end }}
|