initial commit
This commit is contained in:
commit
5c664be9a8
55 changed files with 8825 additions and 0 deletions
81
layouts/partials/films/table-body.html
Normal file
81
layouts/partials/films/table-body.html
Normal file
|
@ -0,0 +1,81 @@
|
|||
{{ 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 }}
|
Loading…
Add table
Add a link
Reference in a new issue