{{range .index_navs}}
{{.Name}}
{{end}}
{{if .cur_nav.Children}}
{{range .cur_nav.Children}}
{{.Name}}
{{end}}
{{end}}
{{with or .feeds .topics .articles .docs .subjects}}
{{range $i, $feed := $.feeds}}
{{if .User}}
{{else}}
{{end}}
|
|
{{.Title}}
{{if .Top}}
置顶 •
{{end}}
{{if eq .Objtype 0}}
{{.Node.name}}
{{else if eq .Objtype 1}}
{{if .Tags}}
{{$tags := explode .Tags ","}}
{{index $tags 0}}
{{else}}
文章
{{end}}
{{else if eq .Objtype 2}}
{{.Node.name}}
{{else if eq .Objtype 3}}
WIKI
{{else if eq .Objtype 4}}
开源项目
{{else if eq .Objtype 5}}
图书
{{end}}
•
{{if .Uid}}
{{.User.Username}}
{{else}}
{{.Author}}
{{end}}
•
{{if .Lastreplyuid}}
• 最后回复来自 {{.Lastreplyuser.Username}}
{{else}}
发布
{{end}}
•
{{$likeFlag := index $.likeflags .Objid .Objtype}}
{{if .Likenum}}
{{.Likenum}}
·
{{end}}
{{if $likeFlag}}已赞{{else}}赞{{end}}
|
{{if .Cmtnum}}
{{.Cmtnum}}
|
{{end}}
{{if eq $i 4}}
{{if $.pos_ad.banner}}
{{if eq $.pos_ad.banner.AdType 0}}
{{noescape $.pos_ad.banner.Code}}
{{else}}
{{end}}
{{end}}
{{else if eq (mod $i 10) 4}}
{{if $.pos_ad.feed}}
{{if eq $.pos_ad.feed.AdType 0}}
{{noescape $.pos_ad.feed.Code}}
{{else}}
{{end}}
{{end}}
{{end}}
{{end}}
{{range $i, $topic := $.topics}}
{{if eq $i 4}}
{{if $.pos_ad.other_banner}}
{{if eq $.pos_ad.other_banner.AdType 0}}
{{noescape $.pos_ad.other_banner.Code}}
{{else}}
{{end}}
{{end}}
{{else if eq (mod $i 10) 4}}
{{if $.pos_ad.feed}}
{{if eq $.pos_ad.feed.AdType 0}}
{{noescape $.pos_ad.feed.Code}}
{{else}}
{{end}}
{{end}}
{{end}}
{{end}}
{{range $i, $article := $.articles}}
{{if .User}}
{{else}}
{{end}}
|
|
{{.Title}}
{{if .Top}}
置顶 •
{{end}}
{{if .Tags}}
{{$tags := explode .Tags ","}}
{{index $tags 0}}
{{else}}
文章 •
{{end}}
{{if and .IsSelf .User}}
{{.User.Username}}
{{else}}
{{.AuthorTxt}}
{{end}}
•
{{if .Lastreplyuid}}
• 最后回复来自 {{.LastReplyUser.Username}}
{{else}}
发布
{{end}}
•
{{$likeFlag := index $.likeflags .Id 1}}
{{if .Likenum}}
{{.Likenum}}
·
{{end}}
{{if $likeFlag}}已赞{{else}}赞{{end}}
|
{{if .Cmtnum}}
{{.Cmtnum}}
|
{{end}}
{{if eq $i 4}}
{{if $.pos_ad.other_banner}}
{{if eq $.pos_ad.other_banner.AdType 0}}
{{noescape $.pos_ad.other_banner.Code}}
{{else}}
{{end}}
{{end}}
{{else if eq (mod $i 10) 4}}
{{if $.pos_ad.feed}}
{{if eq $.pos_ad.feed.AdType 0}}
{{noescape $.pos_ad.feed.Code}}
{{else}}
{{end}}
{{end}}
{{end}}
{{end}}
{{range $i, $doc := $.docs}}
{{if .Uid}}
{{$user := index $.users .Uid}}
{{else}}
{{end}}
|
|
{{.Title}}
{{if .Nid}}
{{$node := index $.nodes .Nid}}
{{$node.Name}}
{{else}}
{{if .Tags}}
{{$tags := explode .Tags ","}}
{{index $tags 0}}
{{else}}
{{if eq .Objtype 1}}
文章
{{else if eq .Objtype 2}}
分享发现
{{else if eq .Objtype 3}}
WIKI
{{else if eq .Objtype 4}}
开源项目
{{end}}
{{end}}
{{end}}
•
{{if .Uid}}
{{$user := index $.users .Uid}}
{{$user.Username}}
{{else}}
{{.Author}}
{{end}}
•
{{if .Lastreplyuid}}
{{$user := index $.users .Lastreplyuid}}
• 最后回复来自 {{$user.Username}}
{{else}}
发布
{{end}}
•
{{$likeFlag := index $.likeflags .Objid .Objtype}}
{{if .Likenum}}
{{.Likenum}}
·
{{end}}
{{if $likeFlag}}已赞{{else}}赞{{end}}
|
{{if .Cmtnum}}
{{.Cmtnum}}
|
{{end}}
{{if eq $i 4}}
{{if $.pos_ad.other_banner}}
{{if eq $.pos_ad.other_banner.AdType 0}}
{{noescape $.pos_ad.other_banner.Code}}
{{else}}
{{end}}
{{end}}
{{else if eq (mod $i 10) 4}}
{{if $.pos_ad.feed}}
{{if eq $.pos_ad.feed.AdType 0}}
{{noescape $.pos_ad.feed.Code}}
{{else}}
{{end}}
{{end}}
{{end}}
{{end}}
{{range $i, $subject := $.subjects}}
{{if eq $i 4}}
{{if $.pos_ad.other_banner}}
{{if eq $.pos_ad.other_banner.AdType 0}}
{{noescape $.pos_ad.other_banner.Code}}
{{else}}
{{end}}
{{end}}
{{else if eq (mod $i 10) 4}}
{{if $.pos_ad.feed}}
{{if eq $.pos_ad.feed.AdType 0}}
{{noescape $.pos_ad.feed.Code}}
{{else}}
{{end}}
{{end}}
{{end}}
{{end}}
{{if $.page}}
{{end}}
{{else}}
{{end}}