{{template "dashboard/layout.html" .}} {{define "content"}}

Welcome back

Here’s an overview of your account.

{{if .Data}}{{.Data.DocumentCount}}{{else}}0{{end}}

Documents

{{if .Data}}{{.Data.FavoriteCount}}{{else}}0{{end}}

Favorites

{{if .Data}}{{.Data.ViewCount}}{{else}}0{{end}}

Views

Account
{{if .User}}
Balance ¥{{.User.Money}}
Email {{if .User.IsVerify}}Verified{{else}}Unverified{{end}}
Role {{if eq .User.Gid 1}}Admin{{else}}User{{end}}
View profile {{end}}
{{end}}