{{template "layout/header.html" .}} {{template "layout/nav.html" .}} {{if .Error}}

{{.Error}}

返回首页
{{else}}
{{if .SpaceUser.Avatar}} {{.SpaceUser.Username}} {{else}}
{{slice .SpaceUser.Username 0 1}}
{{end}}
{{.SpaceUser.Username}} {{if .SpaceUser.Bio}}

{{.SpaceUser.Bio}}

{{end}}
{{if .IsOwnSpace}} {{else}} {{end}}
{{if .IsOwnSpace}}
关注 {{.SpaceUser.FollowingCount}}
粉丝 {{.SpaceUser.FollowersCount}}
获赞 {{formatCount .TotalLikes}}
阅读量 {{formatCount .TotalReads}}
{{else}}
{{end}}
{{/* ========== 文章 Tab ==========*/}} {{if eq .ActiveTab "articles"}}

{{if .IsOwnSpace}}我的文章{{else}}Ta 的文章{{end}}

{{if .Posts}} {{if gt (len .Posts) 0}}
{{range $i, $post := .Posts}}
{{$post.Title}}

{{if $post.Excerpt}}{{printf "%.120s" $post.Excerpt}}{{else}}{{printf "%.120s" $post.Body}}{{end}}

{{end}}
{{if gt .TotalPages 1}} {{end}} {{else}}

{{if .IsOwnSpace}}还没有发布过文章,去创作吧~{{else}}Ta 还没有发布文章{{end}}

{{end}} {{else}}

暂无数据

{{end}}
{{/* ========== 关注列表 Tab(含本人+访客) ==========*/}} {{else if or (eq .ActiveTab "following") (eq .ActiveTab "followers")}}

{{if eq .ActiveTab "following"}}全部关注{{else}}{{if .IsOwnSpace}}粉丝{{else}}Ta的粉丝{{end}}{{end}}

{{/* ---- 关注列表 ---- */}} {{if eq .ActiveTab "following"}} {{if .FollowingResult}} {{if .FollowingResult.Accessible}} {{if eq (len .FollowingResult.Items) 0}}

{{if .IsOwnSpace}}暂未关注任何人,去发现有趣的创作者吧~{{else}}Ta 暂未关注任何人{{end}}

{{else}} {{if .IsOwnSpace}} {{end}}
{{range $i, $item := .FollowingResult.Items}}
{{if $item.FolloweeAvatar}} {{$item.FolloweeUsername}} {{else}}
{{slice $item.FolloweeUsername 0 1}}
{{end}}
{{if $.IsOwnSpace}} {{else}} {{end}}
{{end}}
{{end}} {{else}}

{{if .IsOwnSpace}}你关闭了展示关注列表~{{else}}Ta 关闭了展示关注列表~{{end}}

{{if .IsOwnSpace}} 去设置开启 {{end}}
{{end}} {{else}}

暂无数据

{{end}} {{/* ---- 粉丝列表 ---- */}} {{else if eq .ActiveTab "followers"}} {{if .FollowersResult}} {{if .FollowersResult.Accessible}} {{if eq (len .FollowersResult.Items) 0}}

{{if .IsOwnSpace}}暂无粉丝{{else}}Ta 暂无粉丝{{end}}

{{else}} {{if .IsOwnSpace}} {{end}}
{{range $i, $item := .FollowersResult.Items}}
{{if $item.FollowerAvatar}} {{$item.FollowerUsername}} {{else}}
{{slice $item.FollowerUsername 0 1}}
{{end}}
{{if not $.IsOwnSpace}} {{end}}
{{end}}
{{end}} {{else}}

{{if .IsOwnSpace}}你关闭了展示粉丝列表~{{else}}Ta 关闭了展示粉丝列表~{{end}}

{{if .IsOwnSpace}} 去设置开启 {{end}}
{{end}} {{else}}

暂无数据

{{end}} {{end}}
{{/* ========== 收藏夹 Tab(仅本人) ==========*/}} {{else if eq .ActiveTab "collections"}}
{{if .FoldersResult}} {{if gt (len .FoldersResult.Folders) 0}} {{if .ActiveFolder}}

{{.ActiveFolder.Name}}

{{if .ActiveFolder.IsPublic}}公开{{else}}私密{{end}} · 文章数 {{.FolderItems.Total}}

{{if .FolderItems}} {{if gt (len .FolderItems.Items) 0}}
{{range $item := .FolderItems.Items}} {{end}}
{{else}}

这个收藏夹还是空的

{{end}} {{else}}

暂无数据

{{end}} {{else}}

还没有创建收藏夹,点击左侧「新建收藏夹」开始吧~

{{end}} {{else}}

加载失败

{{end}}
{{/* ========== 设置 Tab(仅本人) ==========*/}} {{else if eq .ActiveTab "settings"}}

隐私设置

{{end}}
{{end}} {{template "layout/footer.html" .}} {{if and (not .IsOwnSpace) (or (eq .ActiveTab "following") (eq .ActiveTab "followers"))}} {{end}} {{if eq .ActiveTab "collections"}} {{end}} {{if eq .ActiveTab "settings"}} {{end}} {{end}}