{{define "setup"}} {{template "layout-start" .}}

{{if .StorageUnset}}{{t "setup.choose"}}{{else}}{{t "setup.pathTitle"}}{{end}}

{{if not .StorageUnset}}

{{t "setup.changeWarn"}}

{{end}}
{{if .StorageFree}}

{{t "setup.free" .StorageFree .StorageTotal}}

{{end}}

{{t "setup.rules" .MinFree}}

{{template "layout-end" .}} {{end}} {{define "home"}} {{template "layout-start" .}}
BlueGit

BlueGit

{{t "home.lead"}}

{{if .StorageUnset}}

{{t "home.storage"}}

{{end}}

{{t "nav.signin"}}

{{if .Repos}}

{{t "home.public"}}

{{end}} {{template "layout-end" .}} {{end}} {{define "dashboard"}} {{template "layout-start" .}}

{{t "nav.dashboard"}}

{{if .StorageUnset}}

{{t "home.storage"}}

{{end}} {{if .Heat}}{{template "heatmap" .Heat}}{{end}}

{{t "dash.repos"}}

{{if not .Repos}}

{{t "dash.noRepos"}}

{{end}}

{{t "dash.groups"}}

{{if not .Groups}}

{{t "dash.noGroups"}}

{{end}}
{{template "layout-end" .}} {{end}} {{define "profile"}} {{template "layout-start" .}}
{{if .Profile.AvatarURL}}{{else}}{{initial .Profile.Username}}{{end}}

{{.Profile.Username}}

{{if .Heat}}{{template "heatmap" .Heat}}{{end}} {{template "layout-end" .}} {{end}} {{define "heatmap"}}

{{t "heat.title"}}

{{range .Weeks}}{{.Label}}{{end}}
{{range .Weeks}}
{{range .Days}}{{if .Off}}{{else}}{{end}}{{end}}
{{end}}

{{.TotalText}}

{{t "heat.less"}}{{t "heat.more"}}

{{t "heat.note"}}

{{end}} {{define "new"}} {{template "layout-start" .}}

{{t "title.new"}}

{{template "layout-end" .}} {{end}} {{define "account"}} {{template "layout-start" .}}

{{t "title.account"}}

{{t "acct.hint"}}

{{t "acct.language"}}

{{if .NewToken}}

{{.NewToken}}

{{end}}

{{t "acct.tokens"}}

{{t "acct.ssh"}}

{{t "acct.export"}}

{{template "layout-end" .}} {{end}} {{define "ficon"}} {{if eq . "dir"}} {{else if eq . "md"}} {{else if eq . "code"}} {{else if eq . "cfg"}} {{else if eq . "lic"}} {{else if eq . "img"}} {{else}} {{end}} {{end}} {{define "visicon"}} {{if eq . "public"}} {{else}} {{end}} {{end}} {{define "branchpick"}} {{if .RevProtected}}{{end}} {{end}} {{define "avatar"}} {{if .Avatar}}{{else}}{{if .Initial}}{{.Initial}}{{else}}{{initial .Author}}{{end}}{{end}} {{end}} {{define "commitwho"}}{{if .UserURL}}{{.Author}}{{else}}{{.Author}}{{end}}{{if .RawName}} {{.RawName}}{{end}}{{if .PushedBy}} · {{t "commit.pushedBy" .PushedBy}}{{end}}{{end}} {{define "commitbar"}} {{if .Head}}
{{template "avatar" .Head}}
{{.Head.Subject}}
{{template "commitwho" .Head}} · {{.Head.When}}
{{slice .Head.SHA 0 8}} {{t "repo.history"}}
{{end}} {{end}} {{define "codemenu"}} {{end}} {{define "filetable"}} {{if .Files}} {{range .Files}} {{end}}
{{t "repo.name"}}{{t "repo.lastCommit"}}{{t "repo.lastChange"}}
{{template "ficon" .Icon}} {{if .Dir}}{{.Name}}{{else}}{{.Name}}{{end}} {{if .SHA}}{{.Subject}}{{end}} {{.When}}
{{else if eq .Page "files"}}

{{t "repo.emptyDir"}}

{{else if not .Head}}

{{t "repo.noCommits"}}

{{end}} {{end}} {{define "repo"}} {{template "layout-start" .}}

{{if eq .Repo.OwnerKind "group"}}{{.Repo.OwnerPath}}{{else}}{{.Repo.OwnerPath}}{{end}} / {{.Repo.Name}}

{{template "repotabs" .}}
{{if .Repo.HasLogo}}{{else}}{{initial .Repo.Name}}{{end}}

{{.Repo.Name}}

{{template "visicon" .Repo.Visibility}}
{{if .Heat}}{{template "heatmap" .Heat}}{{end}}
{{template "branchpick" .}} {{.Repo.Name}}
{{t "repo.searchFile"}} {{template "codemenu" .}}
{{template "commitbar" .}} {{template "filetable" .}} {{if .ReadmeName}}
{{template "ficon" "md"}} {{.ReadmeName}}
{{.Readme}}
{{end}}
{{template "layout-end" .}} {{end}} {{define "files"}} {{template "layout-start" .}}

{{if eq .Repo.OwnerKind "group"}}{{.Repo.OwnerPath}}{{else}}{{.Repo.OwnerPath}}{{end}} / {{.Repo.Name}}

{{template "repotabs" .}}
{{template "branchpick" .}} {{.Repo.Name}} {{if .BlobPath}}{{range splitPath .BlobPath}} / {{.}}{{end}}{{else if .TreePath}}{{range splitPath .TreePath}} / {{.}}{{end}}{{end}} {{if or .BlobPath .TreePath}}{{end}}
{{if .BlobPath}}

{{template "ficon" (iconOf .FileName)}} {{.FileName}}

{{template "commitbar" .}}
{{template "ficon" (iconOf .FileName)}} {{.FileName}} {{.BlobSize}}
{{if .Binary}}

{{t "repo.binary"}}

{{else}} {{range .Lines}}{{end}}
{{.N}}{{.HTML}}
{{end}}
{{else}} {{template "filetable" .}} {{end}}
{{template "layout-end" .}} {{end}} {{define "tags"}} {{template "layout-start" .}}

{{t "title.tags"}}

{{template "repotabs" .}} {{template "layout-end" .}} {{end}} {{define "commits"}} {{template "layout-start" .}}

{{t "title.commits"}}

{{template "repotabs" .}} {{template "layout-end" .}} {{end}} {{define "commit"}} {{template "layout-start" .}}

{{.Commit.Subject}}

{{template "repotabs" .}}
{{template "avatar" .Commit}}

{{template "commitwho" .Commit}}

{{.Commit.SHA}} · {{.Commit.Date}}

{{if .Commit.Body}}
{{.Commit.Body}}
{{end}} {{template "layout-end" .}} {{end}} {{define "branches"}} {{template "layout-start" .}}

{{t "title.branches"}}

{{template "repotabs" .}} {{template "layout-end" .}} {{end}}