{{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"}}

{{t "nav.new"}}
{{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}}
{{if .Head.PipeStatus}}{{.Head.PipeLabel}}{{end}} {{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" .}}

{{t "tab.overview"}}

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

{{t "tab.files"}}

{{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"}}

{{if .CanWrite}}
{{range .Branches}}{{end}} {{end}} {{if .Tags}}
{{range .Tags}} {{end}}
{{t "tag.name"}} {{t "tag.commit"}} {{t "tag.date"}} {{t "tag.message"}}
{{.Name}} {{if .Protected}}{{t "vis.protected"}}{{end}} {{if .SHA}}{{.Short}} {{.Subject}}{{end}} {{.Date}} {{if .Annotated}}{{t "tag.annotated"}} {{if .Message}}{{.Message}}{{end}}{{else}}{{t "tag.lightweight"}}{{end}} {{if .HasRelease}}{{t "tag.release"}}{{end}} {{t "tag.zip"}} {{t "tag.tgz"}} {{if .CanDelete}}{{end}}
{{else if .Query}}

{{t "tag.noMatch"}}

{{else}}

{{t "repo.noTags"}}

{{end}} {{if .CanWrite}}

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

{{t "title.commits"}}

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