{{ define "gist_header" }}

{{ .gist.User.Username }} / {{ .gist.Title }}

{{ if .userLogged }}
{{ .csrfHtml }} {{ .gist.NbLikes }}
{{ if ne .userLogged.ID .gist.User.ID }}
{{ .csrfHtml }} {{ .gist.NbForks }}
{{ end }} {{ else }} {{ end }} {{ if .userLogged }}{{ if eq .gist.User.Username .userLogged.Username }}
{{ .csrfHtml }}
{{ end }}{{ end }}
{{ if .gist.Forked }}

Forked from {{ .gist.Forked.User.Username }}/{{ .gist.Forked.Title }}

{{ end }}

Last active {{ .gist.UpdatedAt }} {{ if .gist.Private }} • Unlisted {{ end }}

{{ .gist.Description }}

{{ if .revision }} {{ if ne .revision "HEAD" }}

Revision {{ .revision }}

{{ end }} {{ end }}
{{ end }}