Removed now-unused post_list_item template
This commit is contained in:
parent
63f1bf40cc
commit
bf96c0bebb
|
@ -1,24 +0,0 @@
|
||||||
{{/*
|
|
||||||
This template is intended to display a single post in the context of a forum, the feed, or a similar layout.
|
|
||||||
|
|
||||||
It should be called with PostListItem.
|
|
||||||
*/}}
|
|
||||||
|
|
||||||
<div class="post-list-item flex items-center ph3 pv2 {{ if .Unread }}unread{{ else }}read{{ end }} {{ .Classes }}">
|
|
||||||
<img class="avatar-icon mr2" src="{{ .User.AvatarUrl }}">
|
|
||||||
<div class="flex-grow-1 overflow-hidden">
|
|
||||||
<div class="breadcrumbs">
|
|
||||||
{{ range $i, $breadcrumb := .Breadcrumbs }}
|
|
||||||
{{ if gt $i 0 }} » {{ end }}
|
|
||||||
<a href="{{ $breadcrumb.Url }}">{{ $breadcrumb.Name }}</a>
|
|
||||||
{{ end }}
|
|
||||||
</div>
|
|
||||||
<div class="title nowrap truncate"><a href="{{ .Url }}" title="{{ .Preview }}">{{ .Title }}</a></div>
|
|
||||||
<div class="details">
|
|
||||||
<a class="user" href="{{ .User.ProfileUrl }}">{{ .User.Name }}</a> — {{ timehtml (relativedate .Date) .Date }}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="goto">
|
|
||||||
<a href="{{ .Url }}">»</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -88,7 +88,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
{{ range $post := $posts }}
|
{{ range $post := $posts }}
|
||||||
{{ template "post_list_item.html" $post }}
|
{{ template "post_list_item" $post }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
||||||
<div class="ph3 thread unread more">
|
<div class="ph3 thread unread more">
|
||||||
|
|
Loading…
Reference in New Issue